pub struct ServiceUploadDocument {
pub content_type: ContentType,
pub content_length: f32,
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: f32The 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
sourceimpl ServiceUploadDocument
impl ServiceUploadDocument
sourcepub fn new(
content_type: ContentType,
content_length: f32
) -> ServiceUploadDocument
pub fn new(
content_type: ContentType,
content_length: f32
) -> ServiceUploadDocument
Input for to be uploaded document.
Trait Implementations
sourceimpl Clone for ServiceUploadDocument
impl Clone for ServiceUploadDocument
sourcefn clone(&self) -> ServiceUploadDocument
fn clone(&self) -> ServiceUploadDocument
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ServiceUploadDocument
impl Debug for ServiceUploadDocument
sourceimpl Default for ServiceUploadDocument
impl Default for ServiceUploadDocument
sourcefn default() -> ServiceUploadDocument
fn default() -> ServiceUploadDocument
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ServiceUploadDocument
impl<'de> Deserialize<'de> for ServiceUploadDocument
sourcefn 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
sourceimpl PartialEq<ServiceUploadDocument> for ServiceUploadDocument
impl PartialEq<ServiceUploadDocument> for ServiceUploadDocument
sourcefn eq(&self, other: &ServiceUploadDocument) -> bool
fn eq(&self, other: &ServiceUploadDocument) -> bool
sourceimpl Serialize for ServiceUploadDocument
impl Serialize for ServiceUploadDocument
impl StructuralPartialEq for ServiceUploadDocument
Auto Trait Implementations
impl RefUnwindSafe for ServiceUploadDocument
impl Send for ServiceUploadDocument
impl Sync for ServiceUploadDocument
impl Unpin for ServiceUploadDocument
impl UnwindSafe for ServiceUploadDocument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more