#[non_exhaustive]
pub enum ReleaseGroupPrimaryType {
Album,
Single,
Ep,
Broadcast,
Other,
UnrecognizedReleaseGroupPrimaryType,
}
Expand description
The primary type of a MusicBrainz release group.
Note that this enum is non_exhaustive
; The list of release types is subject to change and
these changes are only reflected in the DB, not in actual MB code.
Variants are derived from the release_group_primary_type
table in the MusicBrainz database.
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.
Album
Single
Ep
Broadcast
Other
UnrecognizedReleaseGroupPrimaryType
Any release_group_primary_type that does not yet have a corresponding variant in this enum.
If you ever see a ReleaseGroupPrimaryType::UnrecognizedReleaseGroupPrimaryType
in the wild, let us know and file an issue/pull request!
Trait Implementations§
source§impl Clone for ReleaseGroupPrimaryType
impl Clone for ReleaseGroupPrimaryType
source§fn clone(&self) -> ReleaseGroupPrimaryType
fn clone(&self) -> ReleaseGroupPrimaryType
Returns a copy 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 ReleaseGroupPrimaryType
impl Debug for ReleaseGroupPrimaryType
source§impl<'de> Deserialize<'de> for ReleaseGroupPrimaryType
impl<'de> Deserialize<'de> for ReleaseGroupPrimaryType
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 PartialEq<ReleaseGroupPrimaryType> for ReleaseGroupPrimaryType
impl PartialEq<ReleaseGroupPrimaryType> for ReleaseGroupPrimaryType
source§fn eq(&self, other: &ReleaseGroupPrimaryType) -> bool
fn eq(&self, other: &ReleaseGroupPrimaryType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ReleaseGroupPrimaryType
impl Serialize for ReleaseGroupPrimaryType
impl Eq for ReleaseGroupPrimaryType
impl StructuralEq for ReleaseGroupPrimaryType
impl StructuralPartialEq for ReleaseGroupPrimaryType
Auto Trait Implementations§
impl RefUnwindSafe for ReleaseGroupPrimaryType
impl Send for ReleaseGroupPrimaryType
impl Sync for ReleaseGroupPrimaryType
impl Unpin for ReleaseGroupPrimaryType
impl UnwindSafe for ReleaseGroupPrimaryType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.