#[non_exhaustive]pub enum ClientType {
Desktop,
DesktopMusic,
Mobile,
Tv,
Android,
Ios,
}Expand description
Client types for accessing the YouTube API.
There are multiple clients for accessing the YouTube API which have slightly different features
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Desktop
Client used by youtube.com
DesktopMusic
Client used by music.youtube.com
- can access YTM-specific data
- cannot access non-music content
Mobile
Client used by m.youtube.com
- includes lower resolution audio streams
- does not return audio tracks in different languages
Tv
Client used by youtube.com/tv
- Does not return video metadata when fetching the player
Android
Client used by the Android app
- no obfuscated stream URLs
- includes lower resolution audio streams
Ios
Client used by the iOS app
- no obfuscated stream URLs
Trait Implementations§
Source§impl Clone for ClientType
impl Clone for ClientType
Source§fn clone(&self) -> ClientType
fn clone(&self) -> ClientType
Returns a duplicate of the value. Read more
1.0.0 · 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 ClientType
impl Debug for ClientType
Source§impl<'de> Deserialize<'de> for ClientType
impl<'de> Deserialize<'de> for ClientType
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
Source§impl Hash for ClientType
impl Hash for ClientType
Source§impl PartialEq for ClientType
impl PartialEq for ClientType
Source§impl Serialize for ClientType
impl Serialize for ClientType
impl Copy for ClientType
impl Eq for ClientType
impl StructuralPartialEq for ClientType
Auto Trait Implementations§
impl Freeze for ClientType
impl RefUnwindSafe for ClientType
impl Send for ClientType
impl Sync for ClientType
impl Unpin for ClientType
impl UnwindSafe for ClientType
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