pub enum MetadataContent {
Text(Text),
Contributor(Contributor),
Date(DatePrimitive),
}Expand description
What a metadata value says beyond its text and its role: one of music21’s primitives.
Variants§
Text(Text)
A piece of text with the language it is written in: music21’s
Text, and its Copyright where the text carries a role.
Contributor(Contributor)
Somebody who had a hand in the work: music21’s Contributor, which
may go under several names and may say when they lived.
Date(DatePrimitive)
A date, which may be approximate, uncertain, a bound, a span or a
choice: music21’s DatePrimitive and the four classes under it.
Trait Implementations§
Source§impl Clone for MetadataContent
impl Clone for MetadataContent
Source§impl Debug for MetadataContent
impl Debug for MetadataContent
Source§impl<'de> Deserialize<'de> for MetadataContent
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MetadataContent
Available on crate feature
serde only.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
impl Eq for MetadataContent
Source§impl PartialEq for MetadataContent
impl PartialEq for MetadataContent
Source§impl Serialize for MetadataContent
Available on crate feature serde only.
impl Serialize for MetadataContent
Available on crate feature
serde only.impl StructuralPartialEq for MetadataContent
Auto Trait Implementations§
impl Forget for MetadataContent
impl Freeze for MetadataContent
impl RefUnwindSafe for MetadataContent
impl Send for MetadataContent
impl Sync for MetadataContent
impl Unpin for MetadataContent
impl UnsafeUnpin for MetadataContent
impl UnwindSafe for MetadataContent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more