#[non_exhaustive]pub enum JunkKind {
Video,
Audio,
Lyrics,
Quality,
Promo,
Platform,
Label,
Genre,
Other,
}Expand description
What kind of noise a junk fragment is (R5).
use trackparse::{parse, JunkKind};
let track = parse("Noisia - Stigma [Official Video] [HD] [Free Download]");
let kinds: Vec<JunkKind> = track.junk.iter().map(|j| j.kind).collect();
assert_eq!(kinds, [JunkKind::Video, JunkKind::Quality, JunkKind::Promo]);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.
Video
"video" in the spec and in JSON.
Audio
"audio" in the spec and in JSON.
Lyrics
"lyrics" in the spec and in JSON.
Quality
"quality" in the spec and in JSON.
Promo
"promo" in the spec and in JSON.
Platform
"platform" in the spec and in JSON.
Label
"label" in the spec and in JSON.
Genre
"genre" in the spec and in JSON.
Other
"other" in the spec and in JSON.
Implementations§
Trait Implementations§
impl Copy for JunkKind
Source§impl<'de> Deserialize<'de> for JunkKind
Available on crate feature serde only.
impl<'de> Deserialize<'de> for JunkKind
Available on crate feature
serde only.Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> Result<JunkKind, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> Result<JunkKind, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for JunkKind
impl StructuralPartialEq for JunkKind
Auto Trait Implementations§
impl Forget for JunkKind
impl Freeze for JunkKind
impl Move for JunkKind
impl RefUnwindSafe for JunkKind
impl Send for JunkKind
impl Sync for JunkKind
impl Unpin for JunkKind
impl UnsafeUnpin for JunkKind
impl UnwindSafe for JunkKind
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