pub struct SupportingDocument {
pub title: String,
pub download_link: Option<Option<String>>,
pub download_expiry: String,
pub content: Option<Option<Vec<u8>>>,
pub format: DocumentFormat,
}Expand description
SupportingDocument : The supporting document helps to supporting the claim. Either downloadLink + downloadExpiry or content must be provided.
Fields§
§title: Stringtitle of the document
download_link: Option<Option<String>>§download_expiry: String§content: Option<Option<Vec<u8>>>base64 encoded binary of the actual document. The length restriction of 4 MBytes applies to the encoded string, so the raw document cannot exceed 3 MBytes in size.
format: DocumentFormatImplementations§
Source§impl SupportingDocument
impl SupportingDocument
Sourcepub fn new(
title: String,
download_expiry: String,
format: DocumentFormat,
) -> SupportingDocument
pub fn new( title: String, download_expiry: String, format: DocumentFormat, ) -> SupportingDocument
The supporting document helps to supporting the claim. Either downloadLink + downloadExpiry or content must be provided.
Trait Implementations§
Source§impl Clone for SupportingDocument
impl Clone for SupportingDocument
Source§fn clone(&self) -> SupportingDocument
fn clone(&self) -> SupportingDocument
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 SupportingDocument
impl Debug for SupportingDocument
Source§impl Default for SupportingDocument
impl Default for SupportingDocument
Source§fn default() -> SupportingDocument
fn default() -> SupportingDocument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SupportingDocument
impl<'de> Deserialize<'de> for SupportingDocument
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 SupportingDocument
impl PartialEq for SupportingDocument
Source§impl Serialize for SupportingDocument
impl Serialize for SupportingDocument
impl StructuralPartialEq for SupportingDocument
Auto Trait Implementations§
impl Freeze for SupportingDocument
impl RefUnwindSafe for SupportingDocument
impl Send for SupportingDocument
impl Sync for SupportingDocument
impl Unpin for SupportingDocument
impl UnwindSafe for SupportingDocument
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