Struct musicbrainz_rs::entity::instrument::Instrument
source · pub struct Instrument {
pub id: String,
pub name: String,
pub instrument_type: InstrumentType,
pub type_id: String,
pub description: Option<String>,
pub disambiguation: Option<String>,
pub relations: Option<Vec<Relation>>,
pub tags: Option<Vec<Tag>>,
pub aliases: Option<Vec<Alias>>,
pub genres: Option<Vec<Genre>>,
pub annotation: Option<String>,
}
Expand description
Instruments are devices created or adapted to make musical sounds. Instruments are primarily used in relationships between two other entities and for that, each instrument entity has a parallel relationship attribute with the same MBID. Instruments, like relationship attributes, can only be edited by relationship editors. See Instrument List for the full list.
Fields§
§id: String
§name: String
The instrument name is the name of the instrument, typically the most common name in English.
instrument_type: InstrumentType
The type categorises the instrument by the way the sound is created, similar to the Hornbostel-Sachs classification. The possible values are: Wind instrument, String instrument, Precussion instrument, Electronic instrument, Family, Ensemble, Other instrument.
type_id: String
§description: Option<String>
The description is a brief description of the main characteristics of the instrument.
disambiguation: Option<String>
The disambiguation comments are fields in the database used to help distinguish identically named artists, labels and other entities.
relations: Option<Vec<Relation>>
§aliases: Option<Vec<Alias>>
Aliases are alternate names for an instrument, which currently have two main functions: localised names and search hints.
genres: Option<Vec<Genre>>
§annotation: Option<String>
Annotations are text fields, functioning like a miniature wiki, that can be added to any existing artists, labels, recordings, releases, release groups and works.
Trait Implementations§
source§impl Browsable for Instrument
impl Browsable for Instrument
const COUNT_FIELD: &'static str = "instrument-count"
const OFFSET_FIELD: &'static str = "instrument-offset"
const ENTITIES_FIELD: &'static str = "instruments"
source§impl Browse<'_> for Instrument
impl Browse<'_> for Instrument
source§impl Clone for Instrument
impl Clone for Instrument
source§fn clone(&self) -> Instrument
fn clone(&self) -> Instrument
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Instrument
impl Debug for Instrument
source§impl<'de> Deserialize<'de> for Instrument
impl<'de> Deserialize<'de> for Instrument
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 Fetch<'_> for Instrument
impl Fetch<'_> for Instrument
source§impl PartialEq<Instrument> for Instrument
impl PartialEq<Instrument> for Instrument
source§fn eq(&self, other: &Instrument) -> bool
fn eq(&self, other: &Instrument) -> bool
self
and other
values to be equal, and is used
by ==
.