pub struct PlayerResponse {
pub playability_status: PlayabilityStatus,
pub video_details: Option<VideoDetails>,
pub captions: Option<Captions>,
}Expand description
Top-level playerResponse envelope.
Fields§
§playability_status: PlayabilityStatusWhether YouTube will serve the video and captions.
video_details: Option<VideoDetails>Per-video metadata. Absent for refused playback.
captions: Option<Captions>Caption-track listing. Absent for videos with no captions at all.
Trait Implementations§
Source§impl Clone for PlayerResponse
impl Clone for PlayerResponse
Source§fn clone(&self) -> PlayerResponse
fn clone(&self) -> PlayerResponse
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 PlayerResponse
impl Debug for PlayerResponse
Source§impl<'de> Deserialize<'de> for PlayerResponse
impl<'de> Deserialize<'de> for PlayerResponse
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 PlayerResponse
impl RefUnwindSafe for PlayerResponse
impl Send for PlayerResponse
impl Sync for PlayerResponse
impl Unpin for PlayerResponse
impl UnsafeUnpin for PlayerResponse
impl UnwindSafe for PlayerResponse
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