Trait MetadataItem

Source
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§

Source

fn metadata(&self) -> &Metadata

Returns the Plex metadata for this item.

Source

fn client(&self) -> &HttpClient

Returns the http client for this item.

Provided Methods§

Source

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.

Source

fn title(&self) -> &str

Returns the title of this item.

Implementors§