pub struct VoucherInformation {
pub issuer: String,
pub code: String,
}Fields§
§issuer: StringIdentifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: ‘urn:uic:rics:1185:000011’
code: Stringvoucher code provided by the issuer
Implementations§
Source§impl VoucherInformation
impl VoucherInformation
pub fn new(issuer: String, code: String) -> VoucherInformation
Trait Implementations§
Source§impl Clone for VoucherInformation
impl Clone for VoucherInformation
Source§fn clone(&self) -> VoucherInformation
fn clone(&self) -> VoucherInformation
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 VoucherInformation
impl Debug for VoucherInformation
Source§impl Default for VoucherInformation
impl Default for VoucherInformation
Source§fn default() -> VoucherInformation
fn default() -> VoucherInformation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VoucherInformation
impl<'de> Deserialize<'de> for VoucherInformation
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 VoucherInformation
impl PartialEq for VoucherInformation
Source§impl Serialize for VoucherInformation
impl Serialize for VoucherInformation
impl StructuralPartialEq for VoucherInformation
Auto Trait Implementations§
impl Freeze for VoucherInformation
impl RefUnwindSafe for VoucherInformation
impl Send for VoucherInformation
impl Sync for VoucherInformation
impl Unpin for VoucherInformation
impl UnsafeUnpin for VoucherInformation
impl UnwindSafe for VoucherInformation
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