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§
Source§impl ChargeInstrument
impl ChargeInstrument
Sourcepub fn new() -> ChargeInstrument
pub fn new() -> ChargeInstrument
A payment instrument.
Trait Implementations§
Source§impl Clone for ChargeInstrument
impl Clone for ChargeInstrument
Source§fn clone(&self) -> ChargeInstrument
fn clone(&self) -> ChargeInstrument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChargeInstrument
impl Debug for ChargeInstrument
Source§impl Default for ChargeInstrument
impl Default for ChargeInstrument
Source§fn default() -> ChargeInstrument
fn default() -> ChargeInstrument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChargeInstrument
impl<'de> Deserialize<'de> for ChargeInstrument
Source§fn 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
Source§impl PartialEq for ChargeInstrument
impl PartialEq for ChargeInstrument
Source§impl Serialize for ChargeInstrument
impl Serialize for ChargeInstrument
impl StructuralPartialEq for ChargeInstrument
Auto Trait Implementations§
impl Freeze for ChargeInstrument
impl RefUnwindSafe for ChargeInstrument
impl Send for ChargeInstrument
impl Sync for ChargeInstrument
impl Unpin for ChargeInstrument
impl UnwindSafe for ChargeInstrument
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more