pub struct CorporateCode {
pub code: String,
pub beneficiary: Option<Option<String>>,
pub issuer: String,
}Expand description
CorporateCode : The corporate code is a token that reduces the price of an offer or enables offers that are not available without it. Needs with a commercial agreement between parties.
Fields§
§code: StringThe corporate code issued by the referenced company.
beneficiary: Option<Option<String>>The name of the party that benefits from the corporate code, intended to be presented to the end user.
issuer: StringIdentifies a company. For rail, a RICS company code or compatible ERA company code are used. E.g.: ‘urn:uic:rics:1185:000011’
Implementations§
Source§impl CorporateCode
impl CorporateCode
Sourcepub fn new(code: String, issuer: String) -> CorporateCode
pub fn new(code: String, issuer: String) -> CorporateCode
The corporate code is a token that reduces the price of an offer or enables offers that are not available without it. Needs with a commercial agreement between parties.
Trait Implementations§
Source§impl Clone for CorporateCode
impl Clone for CorporateCode
Source§fn clone(&self) -> CorporateCode
fn clone(&self) -> CorporateCode
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 CorporateCode
impl Debug for CorporateCode
Source§impl Default for CorporateCode
impl Default for CorporateCode
Source§fn default() -> CorporateCode
fn default() -> CorporateCode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CorporateCode
impl<'de> Deserialize<'de> for CorporateCode
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 CorporateCode
impl PartialEq for CorporateCode
Source§impl Serialize for CorporateCode
impl Serialize for CorporateCode
impl StructuralPartialEq for CorporateCode
Auto Trait Implementations§
impl Freeze for CorporateCode
impl RefUnwindSafe for CorporateCode
impl Send for CorporateCode
impl Sync for CorporateCode
impl Unpin for CorporateCode
impl UnwindSafe for CorporateCode
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