pub struct CardReference {
pub code: Option<Option<String>>,
pub number: Option<Option<String>>,
pub issuer: Option<String>,
pub type: TravelAccountType,
}Expand description
CardReference : Number and issuer are needed to identify a travel account, the code identifies a reduction card.
Fields§
§code: Option<Option<String>>Code of the card type according to issuer. E.g. BahnCard50. Predefined values from the Reduction Card Code List
number: Option<Option<String>>Number identifying the travel account, need issuer to be unique.
issuer: Option<String>Identifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: ‘urn:uic:rics:1185:000011’
type: TravelAccountTypeImplementations§
Source§impl CardReference
impl CardReference
Sourcepub fn new(type: TravelAccountType) -> CardReference
pub fn new(type: TravelAccountType) -> CardReference
Number and issuer are needed to identify a travel account, the code identifies a reduction card.
Trait Implementations§
Source§impl Clone for CardReference
impl Clone for CardReference
Source§fn clone(&self) -> CardReference
fn clone(&self) -> CardReference
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 CardReference
impl Debug for CardReference
Source§impl Default for CardReference
impl Default for CardReference
Source§fn default() -> CardReference
fn default() -> CardReference
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CardReference
impl<'de> Deserialize<'de> for CardReference
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 CardReference
impl PartialEq for CardReference
Source§impl Serialize for CardReference
impl Serialize for CardReference
impl StructuralPartialEq for CardReference
Auto Trait Implementations§
impl Freeze for CardReference
impl RefUnwindSafe for CardReference
impl Send for CardReference
impl Sync for CardReference
impl Unpin for CardReference
impl UnwindSafe for CardReference
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