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) -> &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.
Source§impl Transcodable for Video
impl Transcodable for Video
type Options = VideoTranscodeOptions
Source§async fn create_download_session(
&self,
options: Self::Options,
) -> Result<TranscodeSession>
async fn create_download_session( &self, options: Self::Options, ) -> Result<TranscodeSession>
Starts an offline transcode using the provided options. Read more
Source§async fn create_streaming_session(
&self,
protocol: Protocol,
options: Self::Options,
) -> Result<TranscodeSession>
async fn create_streaming_session( &self, protocol: Protocol, options: Self::Options, ) -> Result<TranscodeSession>
Starts a streaming transcode using of the given media part using the
streaming protocol and provided options. Read more
Source§async fn queue_download(
&self,
options: Self::Options,
download_queue: Option<&DownloadQueue>,
) -> Result<QueueItem>
async fn queue_download( &self, options: Self::Options, download_queue: Option<&DownloadQueue>, ) -> Result<QueueItem>
Queues this item for download using the provided download queue. Read more
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