Struct musicbrainz_rs::entity::alias::Alias
source · pub struct Alias {
pub name: String,
pub sort_name: String,
pub ended: Option<bool>,
pub begin: Option<NaiveDate>,
pub end: Option<NaiveDate>,
pub alias_type: Option<String>,
pub primary: Option<bool>,
pub type_id: Option<String>,
}
Expand description
Aliases are used to store alternate names or misspellings. For more information and examples, see the page about aliases.
Fields§
§name: String
§sort_name: String
§ended: Option<bool>
§begin: Option<NaiveDate>
§end: Option<NaiveDate>
§alias_type: Option<String>
§primary: Option<bool>
§type_id: Option<String>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Aliaswhere
Alias: Default,
impl<'de> Deserialize<'de> for Aliaswhere
Alias: 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
source§impl PartialEq<Alias> for Alias
impl PartialEq<Alias> for Alias
impl Eq for Alias
impl StructuralEq for Alias
impl StructuralPartialEq for Alias
Auto Trait Implementations§
impl RefUnwindSafe for Alias
impl Send for Alias
impl Sync for Alias
impl Unpin for Alias
impl UnwindSafe for Alias
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.