pub struct Files { /* private fields */ }Implementations§
Source§impl Files
impl Files
Sourcepub async fn upload_with_config(
&self,
data: Vec<u8>,
config: UploadFileConfig,
) -> Result<File>
pub async fn upload_with_config( &self, data: Vec<u8>, config: UploadFileConfig, ) -> Result<File>
Sourcepub async fn upload_from_path_with_config(
&self,
path: impl AsRef<Path>,
config: UploadFileConfig,
) -> Result<File>
pub async fn upload_from_path_with_config( &self, path: impl AsRef<Path>, config: UploadFileConfig, ) -> Result<File>
Sourcepub async fn download_with_config(
&self,
name_or_uri: impl AsRef<str>,
_config: DownloadFileConfig,
) -> Result<Vec<u8>>
pub async fn download_with_config( &self, name_or_uri: impl AsRef<str>, _config: DownloadFileConfig, ) -> Result<Vec<u8>>
Sourcepub async fn list(&self) -> Result<ListFilesResponse>
pub async fn list(&self) -> Result<ListFilesResponse>
Sourcepub async fn list_with_config(
&self,
config: ListFilesConfig,
) -> Result<ListFilesResponse>
pub async fn list_with_config( &self, config: ListFilesConfig, ) -> Result<ListFilesResponse>
Sourcepub async fn all_with_config(
&self,
config: ListFilesConfig,
) -> Result<Vec<File>>
pub async fn all_with_config( &self, config: ListFilesConfig, ) -> Result<Vec<File>>
Sourcepub async fn wait_for_active(
&self,
name_or_uri: impl AsRef<str>,
config: WaitForFileConfig,
) -> Result<File>
pub async fn wait_for_active( &self, name_or_uri: impl AsRef<str>, config: WaitForFileConfig, ) -> Result<File>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Files
impl !RefUnwindSafe for Files
impl Send for Files
impl Sync for Files
impl Unpin for Files
impl !UnwindSafe for Files
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