pub struct EditOptions {
pub file_id: String,
pub content: Vec<u8>,
pub content_type: String,
pub dry_run: bool,
}Expand description
Per-call edit options.
Fields§
§file_id: StringThe file id to edit.
content: Vec<u8>The new 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.update.
Trait Implementations§
Source§impl Clone for EditOptions
impl Clone for EditOptions
Source§fn clone(&self) -> EditOptions
fn clone(&self) -> EditOptions
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 EditOptions
impl RefUnwindSafe for EditOptions
impl Send for EditOptions
impl Sync for EditOptions
impl Unpin for EditOptions
impl UnsafeUnpin for EditOptions
impl UnwindSafe for EditOptions
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