Struct musicbrainz_rs::entity::annotation::Annotation
source · pub struct Annotation {
pub entity: String,
pub name: String,
pub text: String,
pub annotation_type: String,
}
Expand description
Annotations are text fields, functioning like a miniature wiki, that can be added to any existing artists, labels, recordings, releases, release groups and works. Their purpose is to add information that usually doesn’t fit into the strict structural data schema of MusicBrainz / (be it due to technical limitations that may be addressed later, or because the information in itself has to be free-text). The content of an annotation can be edited by any MusicBrainz user. Like the rest of the database, if something is incorrect or incomplete, you can fix it. All changes are recorded and if someone deletes or defaces the annotation, you can easily restore a previous copy.
Fields§
§entity: String
the annotated entity’s MBID
name: String
the annotated entity’s name or title (diacritics are ignored)
text: String
the annotation’s content (includes wiki formatting)
annotation_type: String
the annotated entity’s entity type
Trait Implementations§
source§impl Clone for Annotation
impl Clone for Annotation
source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Annotation
impl Debug for Annotation
source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
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<Annotation> for Annotation
impl PartialEq<Annotation> for Annotation
source§fn eq(&self, other: &Annotation) -> bool
fn eq(&self, other: &Annotation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Search<'_> for Annotation
impl Search<'_> for Annotation
source§impl Searchable for Annotation
impl Searchable for Annotation
const CREATED_FIELD: &'static str = "created"
const COUNT_FIELD: &'static str = "count"
const OFFSET_FIELD: &'static str = "offset"
const ENTITIES_FIELD: &'static str = "annotations"
source§impl Serialize for Annotation
impl Serialize for Annotation
impl Eq for Annotation
impl StructuralEq for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
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.