pub struct AddPartCmd {
pub name: String,
pub short_name: String,
pub clefs: Vec<String>,
pub midi_channel: u8,
pub midi_program: u8,
}Fields§
§name: String§short_name: String§clefs: Vec<String>Clef variant names for each staff, e.g. [“Treble”] or [“Treble”, “Bass”]
midi_channel: u8MIDI channel (0–15). Default 0.
midi_program: u8General MIDI program (0–127). Default 0 = Acoustic Grand Piano.
Trait Implementations§
Source§impl Clone for AddPartCmd
impl Clone for AddPartCmd
Source§fn clone(&self) -> AddPartCmd
fn clone(&self) -> AddPartCmd
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddPartCmd
impl Debug for AddPartCmd
Source§impl<'de> Deserialize<'de> for AddPartCmd
impl<'de> Deserialize<'de> for AddPartCmd
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 AddPartCmd
impl RefUnwindSafe for AddPartCmd
impl Send for AddPartCmd
impl Sync for AddPartCmd
impl Unpin for AddPartCmd
impl UnsafeUnpin for AddPartCmd
impl UnwindSafe for AddPartCmd
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