[−][src]Trait misskey_util::UploadFileClientExt
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]
&self,
path: impl AsRef<Path>
) -> BoxFuture<'_, Result<DriveFile, Error<Self::Error>>>
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.