[−][src]Trait misskey::UploadFileClientExt
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]
&self,
path: impl AsRef<Path>
) -> Pin<Box<dyn Future<Output = Result<DriveFile, Error<Self::Error>>> + Send, Global>>
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.
Implementors
impl<C> UploadFileClientExt for C where
C: Sync + UploadFileClient,
[src]
C: Sync + UploadFileClient,