pub struct ChargeInstrument {
pub description: Option<String>,
pub tail: Option<String>,
pub amount: Option<Box<Currency>>,
}Expand description
ChargeInstrument : A payment instrument.
Fields
description: Option<String>A short description of the charge instrument.
tail: Option<String>The account tail (trailing digits) of the charge instrument.
amount: Option<Box<Currency>>Implementations
sourceimpl ChargeInstrument
impl ChargeInstrument
sourcepub fn new() -> ChargeInstrument
pub fn new() -> ChargeInstrument
A payment instrument.
Trait Implementations
sourceimpl Clone for ChargeInstrument
impl Clone for ChargeInstrument
sourcefn clone(&self) -> ChargeInstrument
fn clone(&self) -> ChargeInstrument
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ChargeInstrument
impl Debug for ChargeInstrument
sourceimpl Default for ChargeInstrument
impl Default for ChargeInstrument
sourcefn default() -> ChargeInstrument
fn default() -> ChargeInstrument
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ChargeInstrument
impl<'de> Deserialize<'de> for ChargeInstrument
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ChargeInstrument> for ChargeInstrument
impl PartialEq<ChargeInstrument> for ChargeInstrument
sourcefn eq(&self, other: &ChargeInstrument) -> bool
fn eq(&self, other: &ChargeInstrument) -> bool
sourceimpl Serialize for ChargeInstrument
impl Serialize for ChargeInstrument
impl StructuralPartialEq for ChargeInstrument
Auto Trait Implementations
impl RefUnwindSafe for ChargeInstrument
impl Send for ChargeInstrument
impl Sync for ChargeInstrument
impl Unpin for ChargeInstrument
impl UnwindSafe for ChargeInstrument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more