Skip to main content

Uploads

Trait Uploads 

Source
pub trait Uploads {
    // Required methods
    async fn upload(
        &self,
        target: UploadTarget<'_>,
        path: &Path,
        content: &Content,
        size: u64,
        md5: &str,
        name: &str,
    ) -> Result<UploadResult>;
    async fn root_folder(
        &self,
        path: &str,
        create: bool,
        privacy: Option<&str>,
    ) -> Result<Option<String>>;
}
Expand description

Sending files to SmugMug.

Required Methods§

Source

async fn upload( &self, target: UploadTarget<'_>, path: &Path, content: &Content, size: u64, md5: &str, name: &str, ) -> Result<UploadResult>

Source

async fn root_folder( &self, path: &str, create: bool, privacy: Option<&str>, ) -> Result<Option<String>>

The root folder’s node URI, created if create (else None when missing).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§