Enum Item

Source
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 Clone for Item

Source§

fn clone(&self) -> Item

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Item

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<Artist> for Item

Source§

fn from(v: Artist) -> Item

Converts to this type from the input type.
Source§

impl From<Clip> for Item

Source§

fn from(v: Clip) -> Item

Converts to this type from the input type.
Source§

impl From<Collection<Movie>> for Item

Source§

fn from(v: Collection<Movie>) -> Item

Converts to this type from the input type.
Source§

impl From<Collection<Show>> for Item

Source§

fn from(v: Collection<Show>) -> Item

Converts to this type from the input type.
Source§

impl From<Episode> for Item

Source§

fn from(v: Episode) -> Item

Converts to this type from the input type.
Source§

impl From<Movie> for Item

Source§

fn from(v: Movie) -> Item

Converts to this type from the input type.
Source§

impl From<MusicAlbum> for Item

Source§

fn from(v: MusicAlbum) -> Item

Converts to this type from the input type.
Source§

impl From<Photo> for Item

Source§

fn from(v: Photo) -> Item

Converts to this type from the input type.
Source§

impl From<Playlist<Photo>> for Item

Source§

fn from(v: Playlist<Photo>) -> Item

Converts to this type from the input type.
Source§

impl From<Playlist<Track>> for Item

Source§

fn from(v: Playlist<Track>) -> Item

Converts to this type from the input type.
Source§

impl From<Playlist<Video>> for Item

Source§

fn from(v: Playlist<Video>) -> Item

Converts to this type from the input type.
Source§

impl From<Season> for Item

Source§

fn from(v: Season) -> Item

Converts to this type from the input type.
Source§

impl From<Show> for Item

Source§

fn from(v: Show) -> Item

Converts to this type from the input type.
Source§

impl From<Track> for Item

Source§

fn from(v: Track) -> Item

Converts to this type from the input type.
Source§

impl From<UnknownItem> for Item

Source§

fn from(v: UnknownItem) -> Item

Converts to this type from the input type.
Source§

impl FromMetadata for Item

Source§

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 MediaItem for Item

Source§

fn media(&self) -> Vec<Media<'_, Self>>

The different media formats that this item is available in.
Source§

impl MetadataItem for Item

Source§

fn metadata(&self) -> &Metadata

Returns the Plex metadata for this item.

Source§

fn client(&self) -> &HttpClient

Returns the http client for this item.

Source§

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§

fn title(&self) -> &str

Returns the title of this item.

Source§

impl TryInto<Artist> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Artist, <Self as TryInto<Artist>>::Error>

Performs the conversion.
Source§

impl TryInto<Clip> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Clip, <Self as TryInto<Clip>>::Error>

Performs the conversion.
Source§

impl TryInto<Collection<Movie>> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<Collection<Movie>, <Self as TryInto<Collection<Movie>>>::Error>

Performs the conversion.
Source§

impl TryInto<Collection<Show>> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<Collection<Show>, <Self as TryInto<Collection<Show>>>::Error>

Performs the conversion.
Source§

impl TryInto<Episode> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Episode, <Self as TryInto<Episode>>::Error>

Performs the conversion.
Source§

impl TryInto<Movie> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Movie, <Self as TryInto<Movie>>::Error>

Performs the conversion.
Source§

impl TryInto<MusicAlbum> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<MusicAlbum, <Self as TryInto<MusicAlbum>>::Error>

Performs the conversion.
Source§

impl TryInto<Photo> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Photo, <Self as TryInto<Photo>>::Error>

Performs the conversion.
Source§

impl TryInto<Playlist<Photo>> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<Playlist<Photo>, <Self as TryInto<Playlist<Photo>>>::Error>

Performs the conversion.
Source§

impl TryInto<Playlist<Track>> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<Playlist<Track>, <Self as TryInto<Playlist<Track>>>::Error>

Performs the conversion.
Source§

impl TryInto<Playlist<Video>> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into( self, ) -> Result<Playlist<Video>, <Self as TryInto<Playlist<Video>>>::Error>

Performs the conversion.
Source§

impl TryInto<Season> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Season, <Self as TryInto<Season>>::Error>

Performs the conversion.
Source§

impl TryInto<Show> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Show, <Self as TryInto<Show>>::Error>

Performs the conversion.
Source§

impl TryInto<Track> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<Track, <Self as TryInto<Track>>::Error>

Performs the conversion.
Source§

impl TryInto<UnknownItem> for Item

Source§

type Error = &'static str

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<UnknownItem, <Self as TryInto<UnknownItem>>::Error>

Performs the conversion.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,