pub struct ReductionCardAccount {
pub object_type: String,
pub holder: Option<Box<PersonDetail>>,
pub issuer: String,
pub valid_from: String,
pub valid_until: String,
pub number: String,
pub type: Box<ReductionCardType>,
}Fields§
§object_type: StringAttribute is used as discriminator for inheritance between data types.
holder: Option<Box<PersonDetail>>§issuer: StringIdentifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: ‘urn:uic:rics:1185:000011’
valid_from: String§valid_until: String§number: String§type: Box<ReductionCardType>Implementations§
Source§impl ReductionCardAccount
impl ReductionCardAccount
pub fn new( object_type: String, issuer: String, valid_from: String, valid_until: String, number: String, type: ReductionCardType, ) -> ReductionCardAccount
Trait Implementations§
Source§impl Clone for ReductionCardAccount
impl Clone for ReductionCardAccount
Source§fn clone(&self) -> ReductionCardAccount
fn clone(&self) -> ReductionCardAccount
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 ReductionCardAccount
impl Debug for ReductionCardAccount
Source§impl Default for ReductionCardAccount
impl Default for ReductionCardAccount
Source§fn default() -> ReductionCardAccount
fn default() -> ReductionCardAccount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReductionCardAccount
impl<'de> Deserialize<'de> for ReductionCardAccount
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 ReductionCardAccount
impl PartialEq for ReductionCardAccount
Source§impl Serialize for ReductionCardAccount
impl Serialize for ReductionCardAccount
impl StructuralPartialEq for ReductionCardAccount
Auto Trait Implementations§
impl Freeze for ReductionCardAccount
impl RefUnwindSafe for ReductionCardAccount
impl Send for ReductionCardAccount
impl Sync for ReductionCardAccount
impl Unpin for ReductionCardAccount
impl UnwindSafe for ReductionCardAccount
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