pub struct FileBuilder { /* private fields */ }Expand description
A builder for creating a file resource.
Implementations§
Source§impl FileBuilder
impl FileBuilder
Sourcepub fn display_name(self, display_name: impl Into<String>) -> Self
pub fn display_name(self, display_name: impl Into<String>) -> Self
The display name of the file.
Sourcepub fn with_mime_type(self, mime_type: Mime) -> Self
pub fn with_mime_type(self, mime_type: Mime) -> Self
The MIME type of the file.
Sourcepub async fn upload(self) -> Result<FileHandle, Error>
pub async fn upload(self) -> Result<FileHandle, Error>
Upload the file.
Trait Implementations§
Source§impl Clone for FileBuilder
impl Clone for FileBuilder
Source§fn clone(&self) -> FileBuilder
fn clone(&self) -> FileBuilder
Returns a duplicate of the value. Read more
1.0.0 · 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 FileBuilder
impl !RefUnwindSafe for FileBuilder
impl Send for FileBuilder
impl Sync for FileBuilder
impl Unpin for FileBuilder
impl !UnwindSafe for FileBuilder
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