pub enum YoutubeFormatSource {
Direct(String),
Signed {
url: String,
signature: String,
parameter: String,
},
}Expand description
Denotes how one format states the location of its representation.
Variants§
Direct(String)
States a retrievable URL directly.
Signed
States a URL granting retrieval only under a solved signature.
Implementations§
Source§impl YoutubeFormatSource
impl YoutubeFormatSource
Sourcepub fn signature_challenge(&self) -> Option<YoutubeChallenge>
pub fn signature_challenge(&self) -> Option<YoutubeChallenge>
Observes the signature challenge guarding this source.
Trait Implementations§
Source§impl Clone for YoutubeFormatSource
impl Clone for YoutubeFormatSource
Source§impl Debug for YoutubeFormatSource
impl Debug for YoutubeFormatSource
impl Eq for YoutubeFormatSource
Source§impl PartialEq for YoutubeFormatSource
impl PartialEq for YoutubeFormatSource
impl StructuralPartialEq for YoutubeFormatSource
Auto Trait Implementations§
impl Freeze for YoutubeFormatSource
impl RefUnwindSafe for YoutubeFormatSource
impl Send for YoutubeFormatSource
impl Sync for YoutubeFormatSource
impl Unpin for YoutubeFormatSource
impl UnsafeUnpin for YoutubeFormatSource
impl UnwindSafe for YoutubeFormatSource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more