pub struct ServiceUploadDocument {
pub content_type: ContentType,
pub content_length: f64,
pub content_md5: Option<String>,
}Expand description
ServiceUploadDocument : Input for to be uploaded document.
Fields§
§content_type: ContentTypeThe content type of the to-be-uploaded file
content_length: f64The content length of the to-be-uploaded file
content_md5: Option<String>An MD5 hash of the content to be submitted to the upload destination. This value is used to determine if the data has been corrupted or tampered with during transit.
Implementations§
Source§impl ServiceUploadDocument
impl ServiceUploadDocument
Sourcepub fn new(
content_type: ContentType,
content_length: f64,
) -> ServiceUploadDocument
pub fn new( content_type: ContentType, content_length: f64, ) -> ServiceUploadDocument
Input for to be uploaded document.
Trait Implementations§
Source§impl Clone for ServiceUploadDocument
impl Clone for ServiceUploadDocument
Source§fn clone(&self) -> ServiceUploadDocument
fn clone(&self) -> ServiceUploadDocument
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 ServiceUploadDocument
impl Debug for ServiceUploadDocument
Source§impl Default for ServiceUploadDocument
impl Default for ServiceUploadDocument
Source§fn default() -> ServiceUploadDocument
fn default() -> ServiceUploadDocument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceUploadDocument
impl<'de> Deserialize<'de> for ServiceUploadDocument
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 ServiceUploadDocument
impl PartialEq for ServiceUploadDocument
Source§impl Serialize for ServiceUploadDocument
impl Serialize for ServiceUploadDocument
impl StructuralPartialEq for ServiceUploadDocument
Auto Trait Implementations§
impl Freeze for ServiceUploadDocument
impl RefUnwindSafe for ServiceUploadDocument
impl Send for ServiceUploadDocument
impl Sync for ServiceUploadDocument
impl Unpin for ServiceUploadDocument
impl UnwindSafe for ServiceUploadDocument
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