Enum musicbrainz_rs::entity::artist::ArtistType
source · #[non_exhaustive]
pub enum ArtistType {
Choir,
Orchestra,
Person,
Group,
Character,
Other,
UnrecognizedArtistType,
}
Expand description
The type of a MusicBrainz artist entity.
Note that this enum is non_exhaustive
; The list of artist types is subject to change and these
changes are only reflected in the DB, not in actual MB code.
Variants are derived from the artist_type
table in the MusicBrainz database.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Choir
This indicates a choir/chorus (an organized, usually large group of singers). Smaller vocal ensembles and groupings that do not generally call themselves choirs are better entered as “Group”.
Orchestra
This indicates an orchestra (an organized, usually large group of instrumentalists). Smaller ensembles (such as trios and quartets) and groupings that do not generally call themselves orchestras are better entered as “Group”.
Person
This indicates an individual person, be it under its legal name (“John Lennon”), or a performance name (“Sting”).
Group
A grouping of multiple musicians who perform together (in some cases, some or all of the members might differ in different performances or recordings).
Character
This indicates an individual fictional character (whether a fictional person, animal or any other kind of character).
Other
Anything which does not fit into the above categories.
UnrecognizedArtistType
Any artist_type that does not yet have a corresponding variant in this enum.
If you ever see a ArtistType::UnrecognizedArtistType
in the wild, let us know and file an issue/pull request!
Trait Implementations§
source§impl Clone for ArtistType
impl Clone for ArtistType
source§fn clone(&self) -> ArtistType
fn clone(&self) -> ArtistType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ArtistType
impl Debug for ArtistType
source§impl<'de> Deserialize<'de> for ArtistType
impl<'de> Deserialize<'de> for ArtistType
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>,
source§impl PartialEq<ArtistType> for ArtistType
impl PartialEq<ArtistType> for ArtistType
source§fn eq(&self, other: &ArtistType) -> bool
fn eq(&self, other: &ArtistType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArtistType
impl Serialize for ArtistType
impl Eq for ArtistType
impl StructuralEq for ArtistType
impl StructuralPartialEq for ArtistType
Auto Trait Implementations§
impl RefUnwindSafe for ArtistType
impl Send for ArtistType
impl Sync for ArtistType
impl Unpin for ArtistType
impl UnwindSafe for ArtistType
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
key
and return true
if they are equal.