pub struct NoteValueQuantity {
pub duration: NoteValue,
pub multiple: PositiveInteger,
}Expand description
NoteValueQuantity
JSON schema
{
"type": "object",
"required": [
"duration",
"multiple"
],
"properties": {
"duration": {
"$ref": "#/$defs/note-value"
},
"multiple": {
"$ref": "#/$defs/positive-integer"
}
},
"additionalProperties": false
}Fields§
§duration: NoteValue§multiple: PositiveIntegerImplementations§
Source§impl NoteValueQuantity
impl NoteValueQuantity
pub fn builder() -> NoteValueQuantity
Trait Implementations§
Source§impl Clone for NoteValueQuantity
impl Clone for NoteValueQuantity
Source§fn clone(&self) -> NoteValueQuantity
fn clone(&self) -> NoteValueQuantity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NoteValueQuantity
impl Debug for NoteValueQuantity
Source§impl<'de> Deserialize<'de> for NoteValueQuantity
impl<'de> Deserialize<'de> for NoteValueQuantity
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 From<&NoteValueQuantity> for NoteValueQuantity
impl From<&NoteValueQuantity> for NoteValueQuantity
Source§fn from(value: &NoteValueQuantity) -> Self
fn from(value: &NoteValueQuantity) -> Self
Converts to this type from the input type.
Source§impl From<NoteValueQuantity> for NoteValueQuantity
impl From<NoteValueQuantity> for NoteValueQuantity
Source§fn from(value: NoteValueQuantity) -> Self
fn from(value: NoteValueQuantity) -> Self
Converts to this type from the input type.
Source§impl Serialize for NoteValueQuantity
impl Serialize for NoteValueQuantity
Source§impl TryFrom<NoteValueQuantity> for NoteValueQuantity
impl TryFrom<NoteValueQuantity> for NoteValueQuantity
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: NoteValueQuantity) -> Result<Self, ConversionError>
fn try_from(value: NoteValueQuantity) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for NoteValueQuantity
impl RefUnwindSafe for NoteValueQuantity
impl Send for NoteValueQuantity
impl Sync for NoteValueQuantity
impl Unpin for NoteValueQuantity
impl UnwindSafe for NoteValueQuantity
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