Struct musicbrainz_rs::entity::area::Area
source · pub struct Area {Show 13 fields
pub id: String,
pub area_type: Option<AreaType>,
pub name: String,
pub relations: Option<Vec<Relation>>,
pub iso_3166_1_codes: Option<Vec<String>>,
pub aliases: Option<Vec<Alias>>,
pub annotation: Option<String>,
pub disambiguation: String,
pub type_id: Option<String>,
pub sort_name: String,
pub life_span: Option<LifeSpan>,
pub tags: Option<Vec<Tag>>,
pub genres: Option<Vec<Genre>>,
}
Expand description
Areas are historical and existing geographic regions. Areas include countries, sub-divisions, counties, municipalities, cities, districts and islands.
Fields§
§id: String
§area_type: Option<AreaType>
The type of area. Possible values are: Country, Subdivision, County, Municipality, City, District, Island.
name: String
The name of the area.
relations: Option<Vec<Relation>>
§iso_3166_1_codes: Option<Vec<String>>
The ISO 3166 codes are the codes assigned by ISO to countries and subdivisions.
aliases: Option<Vec<Alias>>
The aliases are used to store alternate names or misspellings.
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.
disambiguation: String
The disambiguation comments are fields in the database used to help distinguish identically named artists, labels and other entities.
type_id: Option<String>
§sort_name: String
§life_span: Option<LifeSpan>
§genres: Option<Vec<Genre>>
Trait Implementations§
source§impl Browsable for Area
impl Browsable for Area
const COUNT_FIELD: &'static str = "area-count"
const OFFSET_FIELD: &'static str = "area-offset"
const ENTITIES_FIELD: &'static str = "areas"
source§impl<'de> Deserialize<'de> for Areawhere
Area: Default,
impl<'de> Deserialize<'de> for Areawhere
Area: Default,
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