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.
Auto 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