pub enum UploadType {
Media,
Multipart,
Resumable,
}Expand description
The type of upload request to the /upload URI.
If you are uploading data with an /upload URI, this field is required.
If you are creating a metadata-only file, this field is not required.
Variants§
Media
A simple upload which allows you to upload a file without supplying its metadata.
When you perform a simple upload, basic metadata is created and some attributes are inferred from the file, such as the
mime_type or modified_time. You can use a simple upload in
cases where you have small files and file metadata isn’t important.
Multipart
A multipart upload which allows to upload metadata and data in the same request.
Use this option if the data you send is small enough to upload again, in its entirety, if the connection fails.
Resumable
A resumable upload which allows you to resume an upload operation after a communication failure interrupts the flow of data.
Because you don’t have to restart large file uploads from the start, resumable uploads can also reduce your bandwidth usage if there’s a network failure.
Trait Implementations§
Source§impl Clone for UploadType
impl Clone for UploadType
Source§fn clone(&self) -> UploadType
fn clone(&self) -> UploadType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UploadType
impl Debug for UploadType
Source§impl Default for UploadType
impl Default for UploadType
Source§fn default() -> UploadType
fn default() -> UploadType
Source§impl<'de> Deserialize<'de> for UploadType
impl<'de> Deserialize<'de> for UploadType
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>,
Source§impl Display for UploadType
impl Display for UploadType
Source§impl PartialEq for UploadType
impl PartialEq for UploadType
Source§impl Serialize for UploadType
impl Serialize for UploadType
impl Copy for UploadType
impl Eq for UploadType
impl StructuralPartialEq for UploadType
Auto Trait Implementations§
impl Freeze for UploadType
impl RefUnwindSafe for UploadType
impl Send for UploadType
impl Sync for UploadType
impl Unpin for UploadType
impl UnwindSafe for UploadType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.