pub trait Smug {
// Required methods
async fn children(&self, node_uri: &str) -> Result<Vec<ChildNode>>;
async fn create_folder(
&self,
parent_node_uri: &str,
name: &str,
) -> Result<String>;
async fn create_album(
&self,
parent_node_uri: &str,
name: &str,
) -> Result<Album>;
async fn image_count(&self, album: &Album) -> Result<u64>;
async fn album_images(&self, album_key: &str) -> Result<Vec<AlbumImage>>;
}Expand description
The SmugMug calls placing files by date needs.
Required Methods§
async fn children(&self, node_uri: &str) -> Result<Vec<ChildNode>>
Sourceasync fn create_folder(
&self,
parent_node_uri: &str,
name: &str,
) -> Result<String>
async fn create_folder( &self, parent_node_uri: &str, name: &str, ) -> Result<String>
Create a private folder listed by name, ascending; returns its node URI.
Sourceasync fn create_album(&self, parent_node_uri: &str, name: &str) -> Result<Album>
async fn create_album(&self, parent_node_uri: &str, name: &str) -> Result<Album>
Create a private album.
async fn image_count(&self, album: &Album) -> Result<u64>
async fn album_images(&self, album_key: &str) -> Result<Vec<AlbumImage>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".