Enum plex_api::Item

source ·
pub enum Item {
Show 14 variants Movie(Movie), Episode(Episode), Photo(Photo), Show(Show), Artist(Artist), MusicAlbum(MusicAlbum), Season(Season), Track(Track), 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)

§

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 copy of the value. Read more
1.0.0 · source§

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<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 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) -> u32

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

§

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<Collection<Movie>> for Item

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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

§

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.

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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 Twhere U: From<T>,

const: unstable · 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · 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