Enum rustube::video_info::player_response::playability_status::PlayabilityStatus[][src]

pub enum PlayabilityStatus {
    Ok {
        playable_in_embed: bool,
        miniplayer: MiniPlayer,
        messages: Vec<String>,
        context_params: String,
    },
    Unplayable {
        messages: Vec<String>,
        reason: String,
        error_screen: ErrorScreen,
        playable_in_embed: Option<bool>,
        miniplayer: Option<MiniPlayer>,
        context_params: String,
    },
    LoginRequired {
        messages: Vec<String>,
        error_screen: ErrorScreen,
        desktop_legacy_age_gate_reason: Option<i64>,
        context_params: String,
    },
    LiveStreamOffline {
        reason: String,
        playable_in_embed: bool,
        live_streamability: LiveStreamAbility,
        miniplayer: MiniPlayer,
        context_params: String,
    },
}
This is supported on crate feature fetch only.

Variants

Ok

Fields of Ok

playable_in_embed: boolminiplayer: MiniPlayermessages: Vec<String>context_params: String
Unplayable

Fields of Unplayable

messages: Vec<String>reason: Stringerror_screen: ErrorScreenplayable_in_embed: Option<bool>miniplayer: Option<MiniPlayer>context_params: String
LoginRequired

Fields of LoginRequired

messages: Vec<String>error_screen: ErrorScreendesktop_legacy_age_gate_reason: Option<i64>context_params: String
LiveStreamOffline

Fields of LiveStreamOffline

reason: Stringplayable_in_embed: boollive_streamability: LiveStreamAbilityminiplayer: MiniPlayercontext_params: String

Trait Implementations

impl Clone for PlayabilityStatus[src]

impl Debug for PlayabilityStatus[src]

impl<'de> Deserialize<'de> for PlayabilityStatus[src]

impl Eq for PlayabilityStatus[src]

impl Hash for PlayabilityStatus[src]

impl PartialEq<PlayabilityStatus> for PlayabilityStatus[src]

impl Serialize for PlayabilityStatus[src]

impl StructuralEq for PlayabilityStatus[src]

impl StructuralPartialEq for PlayabilityStatus[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.