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 !Freeze for Item
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