pub trait MetadataItem {
// Required methods
fn metadata(&self) -> &Metadata;
fn client(&self) -> &HttpClient;
// Provided methods
fn rating_key(&self) -> &str { ... }
fn title(&self) -> &str { ... }
}
Expand description
Functionality shared across different items types in the Plex library.
Required Methods§
Sourcefn client(&self) -> &HttpClient
fn client(&self) -> &HttpClient
Returns the http client for this item.
Provided Methods§
Sourcefn rating_key(&self) -> &str
fn rating_key(&self) -> &str
Returns the rating key for this item.
This can be used to re-retrieve the item at a later time through the Server::item_by_id function.