ParameterEnum

Enum ParameterEnum 

Source
#[repr(u8)]
pub enum ParameterEnum {
Show 17 variants Actor = 0, Channel = 1, Character = 2, Director = 3, Event = 4, Franchise = 5, Genre = 6, League = 7, Popularity = 8, Provider = 9, Sport = 10, Sportsteam = 11, Type = 12, Video = 13, Season = 14, Episode = 15, Any = 16,
}

Variants§

§

Actor = 0

Actor represents an actor credited in video media content; for example, “Gaby Hoffman”

§

Channel = 1

Channel represents the identifying data for a television channel; for example, “PBS”

§

Character = 2

A character represented in video media content; for example, “Snow White”

§

Director = 3

A director of the video media content; for example, “Spike Lee”

§

Event = 4

An event is a reference to a type of event; examples would include sports, music, or other types of events. For example, searching for “Football games” would search for a ‘game’ event entity and a ‘football’ sport entity.

§

Franchise = 5

A franchise is a video entity which can represent a number of video entities, like movies or TV shows. For example, take the fictional franchise “Intergalactic Wars” which represents a collection of movie trilogies, as well as animated and live action TV shows. This entity type was introduced to account for requests by customers such as “Find Intergalactic Wars movies”, which would search for all ‘Intergalactic Wars’ programs of the MOVIE MediaType, rather than attempting to match to a single title.

§

Genre = 6

Genre represents the genre of video media content such as action, drama or comedy.

§

League = 7

League represents the categorical information for a sporting league; for example, “NCAA”

§

Popularity = 8

Popularity indicates whether the user asks for popular content.

§

Provider = 9

The provider (MSP) the user wants this media to be played on; for example, “Netflix”.

§

Sport = 10

Sport represents the categorical information of a sport; for example, football

§

Sportsteam = 11

SportsTeam represents the categorical information of a professional sports team; for example, “University of Washington Huskies”

§

Type = 12

The type of content requested. Supported types are “Movie”, “MovieSeries”, “TVSeries”, “TVSeason”, “TVEpisode”, “Trailer”, “SportsEvent”, “LiveEvent”, and “Video”

§

Video = 13

Video represents the identifying data for a specific piece of video content; for example, “Manchester by the Sea”.

§

Season = 14

Season represents the specific season number within a TV series.

§

Episode = 15

Episode represents a specific episode number within a Season in a TV series.

§

Any = 16

Represents a search text input across many parameter types or even outside of the defined param types.

Implementations§

Source§

impl ParameterEnum

Source

pub fn from_u8(value: u8) -> Option<Self>

Convert from u8 value

Source

pub fn to_u8(self) -> u8

Convert to u8 value

Trait Implementations§

Source§

impl Clone for ParameterEnum

Source§

fn clone(&self) -> ParameterEnum

Returns a duplicate 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 ParameterEnum

Source§

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

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

impl<'de> Deserialize<'de> for ParameterEnum

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<ParameterEnum> for u8

Source§

fn from(val: ParameterEnum) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ParameterEnum

Source§

fn eq(&self, other: &ParameterEnum) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ParameterEnum

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for ParameterEnum

Source§

impl Eq for ParameterEnum

Source§

impl StructuralPartialEq for ParameterEnum

Auto Trait Implementations§

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, 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> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,