[][src]Trait misskey_util::UploadFileClientExt

pub trait UploadFileClientExt: UploadFileClient + Sync {
    pub fn upload_file(
        &self,
        path: impl AsRef<Path>
    ) -> BoxFuture<'_, Result<DriveFile, Error<Self::Error>>> { ... }
pub fn build_file(&self, path: impl AsRef<Path>) -> DriveFileBuilder<&Self> { ... } }

An extension trait for UploadFileClient that provides convenient high-level APIs.

Provided methods

pub fn upload_file(
    &self,
    path: impl AsRef<Path>
) -> BoxFuture<'_, Result<DriveFile, Error<Self::Error>>>
[src]

Uploads the file from the specified local path.

pub fn build_file(&self, path: impl AsRef<Path>) -> DriveFileBuilder<&Self>[src]

Returns a builder for creating a file on the drive.

The returned builder provides methods to customize details of the file, and you can chain them to create a file incrementally. See DriveFileBuilder for the provided methods.

Loading content...

Implementors

impl<C: UploadFileClient + Sync> UploadFileClientExt for C[src]

Loading content...