pub struct FulfillmentDocument {
pub medium: String,
pub type: String,
pub download_link: Option<Option<String>>,
pub download_expiry: Option<Option<String>>,
pub content: Option<Option<Vec<u8>>>,
pub format: DocumentFormat,
pub application_provider: Option<String>,
}Expand description
FulfillmentDocument : Document created for fulfillment. Either downloadLink + downloadExpiry or content must be provided.
Fields§
§medium: StringFulfillment types. RCT2, RCCST and UIC_PDF are official UIC standards. Notice:ALLOCATOR_APP is deprecated and should not be used anymore. The ALLOCATOR_APP type is replaced by the RETAILER_APP type. DISTRIBUTOR_APP was introduced to distinguish between the different types of apps that can be used to fulfill a booking. Values from the Fulfillment Media Type Code List Listed values here are examples.
type: StringThe type of fulfillment document. Values from the Fulfillment Document Type Code List
download_link: Option<Option<String>>§download_expiry: Option<Option<String>>Expiration time of the download link, the document will not be available at the given URI after this time.
content: Option<Option<Vec<u8>>>base64 encoded binary of the actual fulfillment document. The length restriction of 4 MBytes applies to the encoded string, so the raw document cannot exceed 3 MBytes in size.
format: DocumentFormat§application_provider: 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’
Implementations§
Source§impl FulfillmentDocument
impl FulfillmentDocument
Sourcepub fn new(
medium: String,
type: String,
format: DocumentFormat,
) -> FulfillmentDocument
pub fn new( medium: String, type: String, format: DocumentFormat, ) -> FulfillmentDocument
Document created for fulfillment. Either downloadLink + downloadExpiry or content must be provided.
Trait Implementations§
Source§impl Clone for FulfillmentDocument
impl Clone for FulfillmentDocument
Source§fn clone(&self) -> FulfillmentDocument
fn clone(&self) -> FulfillmentDocument
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FulfillmentDocument
impl Debug for FulfillmentDocument
Source§impl Default for FulfillmentDocument
impl Default for FulfillmentDocument
Source§fn default() -> FulfillmentDocument
fn default() -> FulfillmentDocument
Source§impl<'de> Deserialize<'de> for FulfillmentDocument
impl<'de> Deserialize<'de> for FulfillmentDocument
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>,
Source§impl PartialEq for FulfillmentDocument
impl PartialEq for FulfillmentDocument
Source§fn eq(&self, other: &FulfillmentDocument) -> bool
fn eq(&self, other: &FulfillmentDocument) -> bool
self and other values to be equal, and is used by ==.