pub struct UploadOptions {
pub name: String,
pub parent_folder_id: String,
pub content: Vec<u8>,
pub content_type: String,
pub dry_run: bool,
}Expand description
Per-call upload options.
Fields§
§name: StringThe new file’s display name.
parent_folder_id: StringThe folder id to upload it into.
content: Vec<u8>The file’s content, already read into memory (and already size-checked) by the caller.
content_type: StringThe content’s MIME type.
dry_run: boolWhen true, classify but never call files.create.
Trait Implementations§
Source§impl Clone for UploadOptions
impl Clone for UploadOptions
Source§fn clone(&self) -> UploadOptions
fn clone(&self) -> UploadOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UploadOptions
impl RefUnwindSafe for UploadOptions
impl Send for UploadOptions
impl Sync for UploadOptions
impl Unpin for UploadOptions
impl UnsafeUnpin for UploadOptions
impl UnwindSafe for UploadOptions
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