pub struct DocumentSpecification {
pub passenger_ref: Option<Option<String>>,
pub content: Option<Option<Vec<u8>>>,
pub format: Option<DocumentFormat>,
pub scope: DocumentScope,
pub type: DocumentType,
}Expand description
DocumentSpecification : Non travel document created. Either downloadLink + downloadExpiry or content must be provided.
Fields§
§passenger_ref: Option<Option<String>>Reference to a passenger, to be specified when the document related to an individual passenger.
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: Option<DocumentFormat>§scope: DocumentScope§type: DocumentTypeImplementations§
Source§impl DocumentSpecification
impl DocumentSpecification
Sourcepub fn new(scope: DocumentScope, type: DocumentType) -> DocumentSpecification
pub fn new(scope: DocumentScope, type: DocumentType) -> DocumentSpecification
Non travel document created. Either downloadLink + downloadExpiry or content must be provided.
Trait Implementations§
Source§impl Clone for DocumentSpecification
impl Clone for DocumentSpecification
Source§fn clone(&self) -> DocumentSpecification
fn clone(&self) -> DocumentSpecification
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 DocumentSpecification
impl Debug for DocumentSpecification
Source§impl Default for DocumentSpecification
impl Default for DocumentSpecification
Source§fn default() -> DocumentSpecification
fn default() -> DocumentSpecification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentSpecification
impl<'de> Deserialize<'de> for DocumentSpecification
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 DocumentSpecification
impl PartialEq for DocumentSpecification
Source§impl Serialize for DocumentSpecification
impl Serialize for DocumentSpecification
impl StructuralPartialEq for DocumentSpecification
Auto Trait Implementations§
impl Freeze for DocumentSpecification
impl RefUnwindSafe for DocumentSpecification
impl Send for DocumentSpecification
impl Sync for DocumentSpecification
impl Unpin for DocumentSpecification
impl UnwindSafe for DocumentSpecification
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