[][src]Trait misskey::UploadFileClientExt

pub trait UploadFileClientExt: Sync + UploadFileClient {
    pub fn upload_file(
        &self,
        path: impl AsRef<Path>
    ) -> Pin<Box<dyn Future<Output = Result<DriveFile, Error<Self::Error>>> + Send, Global>> { ... }
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>
) -> Pin<Box<dyn Future<Output = Result<DriveFile, Error<Self::Error>>> + Send, Global>>
[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> UploadFileClientExt for C where
    C: Sync + UploadFileClient
[src]

Loading content...