Skip to main content

SortBackend

Trait SortBackend 

Source
pub trait SortBackend {
    // Required methods
    async fn root(&self) -> Result<String>;
    async fn children(&self, node_uri: &str) -> Result<Vec<ChildNode>>;
    async fn album_sort(&self, album_key: &str) -> Result<(String, String)>;
    async fn set_folder_sort(
        &self,
        node_uri: &str,
        method: &str,
        direction: &str,
    ) -> Result<()>;
    async fn set_album_sort(
        &self,
        album_key: &str,
        method: &str,
        direction: &str,
    ) -> Result<()>;
}
Expand description

The SmugMug calls sorting needs.

Required Methods§

Source

async fn root(&self) -> Result<String>

The account’s root folder node.

Source

async fn children(&self, node_uri: &str) -> Result<Vec<ChildNode>>

Source

async fn album_sort(&self, album_key: &str) -> Result<(String, String)>

An album’s photo sort as SmugMug names it: (method, direction).

Source

async fn set_folder_sort( &self, node_uri: &str, method: &str, direction: &str, ) -> Result<()>

Source

async fn set_album_sort( &self, album_key: &str, method: &str, direction: &str, ) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§