pub struct PlayabilityStatus {
pub status: String,
pub reason: Option<String>,
}Expand description
Why YouTube will or will not play the video.
Fields§
§status: StringOK for playable videos. Other values include LOGIN_REQUIRED,
AGE_VERIFICATION_REQUIRED, UNPLAYABLE, LIVE_STREAM_OFFLINE.
reason: Option<String>Optional human-readable reason, e.g. “Sign in to confirm your age”.
Trait Implementations§
Source§impl Clone for PlayabilityStatus
impl Clone for PlayabilityStatus
Source§fn clone(&self) -> PlayabilityStatus
fn clone(&self) -> PlayabilityStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayabilityStatus
impl Debug for PlayabilityStatus
Source§impl<'de> Deserialize<'de> for PlayabilityStatus
impl<'de> Deserialize<'de> for PlayabilityStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PlayabilityStatus
impl RefUnwindSafe for PlayabilityStatus
impl Send for PlayabilityStatus
impl Sync for PlayabilityStatus
impl Unpin for PlayabilityStatus
impl UnsafeUnpin for PlayabilityStatus
impl UnwindSafe for PlayabilityStatus
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