pub struct DocumentDownload {
pub download_type: String,
pub expiration: Option<String>,
pub uri: String,
}Expand description
DocumentDownload : Resource to download the requested document.
Fields§
§download_type: StringThe type of download. Possible values: URL.
expiration: Option<String>The URI’s expiration time. In ISO 8601 datetime format with pattern yyyy-MM-ddTHH:mm:ss.sssZ.
uri: StringUniform resource identifier to identify where the document is located.
Implementations§
Source§impl DocumentDownload
impl DocumentDownload
Sourcepub fn new(download_type: String, uri: String) -> DocumentDownload
pub fn new(download_type: String, uri: String) -> DocumentDownload
Resource to download the requested document.
Trait Implementations§
Source§impl Clone for DocumentDownload
impl Clone for DocumentDownload
Source§fn clone(&self) -> DocumentDownload
fn clone(&self) -> DocumentDownload
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 DocumentDownload
impl Debug for DocumentDownload
Source§impl Default for DocumentDownload
impl Default for DocumentDownload
Source§fn default() -> DocumentDownload
fn default() -> DocumentDownload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentDownload
impl<'de> Deserialize<'de> for DocumentDownload
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 DocumentDownload
impl PartialEq for DocumentDownload
Source§impl Serialize for DocumentDownload
impl Serialize for DocumentDownload
impl StructuralPartialEq for DocumentDownload
Auto Trait Implementations§
impl Freeze for DocumentDownload
impl RefUnwindSafe for DocumentDownload
impl Send for DocumentDownload
impl Sync for DocumentDownload
impl Unpin for DocumentDownload
impl UnwindSafe for DocumentDownload
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