pub struct FilesManager { /* private fields */ }Expand description
Operations for the “files” API area.
Implementations§
Source§impl FilesManager
impl FilesManager
pub async fn get( &self, file_id: String, opts: Option<FilesGetOptions>, ) -> Result<FileFull, Error>
pub async fn update( &self, file_id: String, body: UpdateFileRequest, opts: Option<FilesUpdateOptions>, ) -> Result<FileFull, Error>
pub async fn delete( &self, file_id: String, opts: Option<FilesDeleteOptions>, ) -> Result<(), Error>
pub async fn copy( &self, file_id: String, body: CopyFileRequest, opts: Option<FilesCopyOptions>, ) -> Result<FileFull, Error>
pub async fn get_thumbnail( &self, file_id: String, extension: GetIdThumbnailIdExtension, opts: Option<FilesGetThumbnailOptions>, ) -> Result<Stream, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for FilesManager
impl !UnwindSafe for FilesManager
impl Freeze for FilesManager
impl Send for FilesManager
impl Sync for FilesManager
impl Unpin for FilesManager
impl UnsafeUnpin for FilesManager
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