pub struct Document {
pub id: String,
pub summary: Option<Option<String>>,
pub passenger_ref: Option<Option<String>>,
pub download_link: Option<Option<String>>,
pub download_expiry: Option<Option<String>>,
pub content: Option<Option<Vec<u8>>>,
pub format: Option<DocumentFormat>,
pub type: DocumentType,
pub scope: DocumentScope,
}Expand description
Document : Non travel document created. Either downloadLink + downloadExpiry or content must be provided.
Fields§
§id: String§summary: Option<Option<String>>§passenger_ref: Option<Option<String>>Reference to a passenger, to be specified when the document related to an individual passenger.
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: Option<DocumentFormat>§type: DocumentType§scope: DocumentScopeImplementations§
Source§impl Document
impl Document
Sourcepub fn new(id: String, type: DocumentType, scope: DocumentScope) -> Document
pub fn new(id: String, type: DocumentType, scope: DocumentScope) -> Document
Non travel document created. Either downloadLink + downloadExpiry or content must be provided.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Document
impl<'de> Deserialize<'de> for Document
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
impl StructuralPartialEq for Document
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnwindSafe for Document
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