pub enum Video {
Movie(Movie),
Episode(Episode),
}Expand description
A video that can be included in a video playlist.
Variants§
Trait Implementations§
source§impl FromMetadata for Video
impl FromMetadata for Video
source§fn from_metadata(client: HttpClient, metadata: Metadata) -> Self
fn from_metadata(client: HttpClient, metadata: Metadata) -> Self
Creates an item given the http configuration and item metadata. No
validation is performed that the metadata is correct.
source§impl MetadataItem for Video
impl MetadataItem for Video
source§fn client(&self) -> &HttpClient
fn client(&self) -> &HttpClient
Returns the http client for this item.
source§fn rating_key(&self) -> u32
fn rating_key(&self) -> u32
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.