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§
async fn children(&self, node_uri: &str) -> Result<Vec<ChildNode>>
Sourceasync fn album_sort(&self, album_key: &str) -> Result<(String, String)>
async fn album_sort(&self, album_key: &str) -> Result<(String, String)>
An album’s photo sort as SmugMug names it: (method, direction).
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<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".