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 MediaItemWithTranscoding for Video
impl MediaItemWithTranscoding for Video
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) -> &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.
Auto Trait Implementations§
impl !Freeze for Video
impl !RefUnwindSafe for Video
impl Send for Video
impl Sync for Video
impl Unpin for Video
impl !UnwindSafe for Video
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more