pub struct NoteValue {
pub base: NoteValueBase,
pub dots: Option<PositiveInteger>,
}Expand description
NoteValue
JSON schema
{
"type": "object",
"required": [
"base"
],
"properties": {
"base": {
"type": "string",
"enum": [
"duplexMaxima",
"maxima",
"longa",
"breve",
"whole",
"half",
"quarter",
"eighth",
"16th",
"32nd",
"64th",
"128th",
"256th",
"512th",
"1024th",
"2048th",
"4096th"
]
},
"dots": {
"$ref": "#/$defs/positive-integer"
}
},
"additionalProperties": false
}Fields§
§base: NoteValueBase§dots: Option<PositiveInteger>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NoteValue
impl<'de> Deserialize<'de> for NoteValue
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
Auto Trait Implementations§
impl Freeze for NoteValue
impl RefUnwindSafe for NoteValue
impl Send for NoteValue
impl Sync for NoteValue
impl Unpin for NoteValue
impl UnwindSafe for NoteValue
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