pub enum DownloadTracks {
All,
Chosen {
audio: Vec<u32>,
subtitles: Vec<u32>,
},
Unknown,
}Expand description
Which tracks a download carries. The video is always there.
Variants§
All
Every track of the file: the only choice that may send the file as it is, byte for byte.
Chosen
These, by their place in Tracks’ audio and subtitles. Order
and repeats do not count.
Unknown
A choice this build does not know: the server answers
InvalidInput.
Implementations§
Source§impl DownloadTracks
impl DownloadTracks
Sourcepub fn normalized(&self) -> Self
pub fn normalized(&self) -> Self
The same choice, each list in order and without repeats: two requests that differ only so are one.
Trait Implementations§
Source§impl Clone for DownloadTracks
impl Clone for DownloadTracks
Source§impl Debug for DownloadTracks
impl Debug for DownloadTracks
Source§impl<'de> Deserialize<'de> for DownloadTracks
impl<'de> Deserialize<'de> for DownloadTracks
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
impl Eq for DownloadTracks
Source§impl PartialEq for DownloadTracks
impl PartialEq for DownloadTracks
Source§impl Serialize for DownloadTracks
impl Serialize for DownloadTracks
impl StructuralPartialEq for DownloadTracks
Auto Trait Implementations§
impl Freeze for DownloadTracks
impl RefUnwindSafe for DownloadTracks
impl Send for DownloadTracks
impl Sync for DownloadTracks
impl Unpin for DownloadTracks
impl UnsafeUnpin for DownloadTracks
impl UnwindSafe for DownloadTracks
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