pub enum Item {
Show 15 variants
Movie(Movie),
Episode(Episode),
Photo(Photo),
Show(Show),
Artist(Artist),
MusicAlbum(MusicAlbum),
Season(Season),
Track(Track),
Clip(Clip),
MovieCollection(Collection<Movie>),
ShowCollection(Collection<Show>),
VideoPlaylist(Playlist<Video>),
PhotoPlaylist(Playlist<Photo>),
MusicPlaylist(Playlist<Track>),
UnknownItem(UnknownItem),
}Variants§
Movie(Movie)
Episode(Episode)
Photo(Photo)
Show(Show)
Artist(Artist)
MusicAlbum(MusicAlbum)
Season(Season)
Track(Track)
Clip(Clip)
MovieCollection(Collection<Movie>)
ShowCollection(Collection<Show>)
VideoPlaylist(Playlist<Video>)
PhotoPlaylist(Playlist<Photo>)
MusicPlaylist(Playlist<Track>)
UnknownItem(UnknownItem)
Trait Implementations§
source§impl From<MusicAlbum> for Item
impl From<MusicAlbum> for Item
source§fn from(v: MusicAlbum) -> Item
fn from(v: MusicAlbum) -> Item
Converts to this type from the input type.
source§impl From<UnknownItem> for Item
impl From<UnknownItem> for Item
source§fn from(v: UnknownItem) -> Item
fn from(v: UnknownItem) -> Item
Converts to this type from the input type.
source§impl FromMetadata for Item
impl FromMetadata for Item
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 Item
impl MetadataItem for Item
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 TryInto<MusicAlbum> for Item
impl TryInto<MusicAlbum> for Item
Auto Trait Implementations§
impl !RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl !UnwindSafe for Item
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