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
type Options = VideoTranscodeOptions
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 !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