pub struct DriveFileBuilder<C> { /* private fields */ }Expand description
Builder for the build_file method.
Implementations§
Source§impl<C> DriveFileBuilder<C>
impl<C> DriveFileBuilder<C>
Sourcepub fn with_path(client: C, path: impl AsRef<Path>) -> Self
pub fn with_path(client: C, path: impl AsRef<Path>) -> Self
Creates a builder with the client and path to the file.
Sourcepub fn as_request(&self) -> &Request
pub fn as_request(&self) -> &Request
Gets the request object for reuse.
Sourcepub fn folder(&mut self, folder: impl EntityRef<DriveFolder>) -> &mut Self
pub fn folder(&mut self, folder: impl EntityRef<DriveFolder>) -> &mut Self
Sets the parent folder of the file.
Sourcepub fn sensitive(&mut self, sensitive: bool) -> &mut Self
pub fn sensitive(&mut self, sensitive: bool) -> &mut Self
Sets whether the file contains NSFW content.
Sourcepub fn use_existing_if_uploaded(
&mut self,
use_existing_if_uploaded: bool,
) -> &mut Self
pub fn use_existing_if_uploaded( &mut self, use_existing_if_uploaded: bool, ) -> &mut Self
Sets whether or not to upload the file again even if the same content has already been uploaded.
Source§impl<C: UploadFileClient> DriveFileBuilder<C>
impl<C: UploadFileClient> DriveFileBuilder<C>
Auto Trait Implementations§
impl<C> Freeze for DriveFileBuilder<C>where
C: Freeze,
impl<C> RefUnwindSafe for DriveFileBuilder<C>where
C: RefUnwindSafe,
impl<C> Send for DriveFileBuilder<C>where
C: Send,
impl<C> Sync for DriveFileBuilder<C>where
C: Sync,
impl<C> Unpin for DriveFileBuilder<C>where
C: Unpin,
impl<C> UnwindSafe for DriveFileBuilder<C>where
C: UnwindSafe,
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