pub struct InstrumentDef {Show 19 fields
pub flags: Option<InstrumentFlags>,
pub size: Option<i32>,
pub value: Option<i32>,
pub material_size: Option<i32>,
pub pieces: Vec<InstrumentPiece>,
pub pitch_range_min: Option<i32>,
pub pitch_range_max: Option<i32>,
pub volume_mb_min: Option<i32>,
pub volume_mb_max: Option<i32>,
pub sound_production: Vec<i32>,
pub sound_production_parm1: Vec<String>,
pub sound_production_parm2: Vec<String>,
pub pitch_choice: Vec<i32>,
pub pitch_choice_parm1: Vec<String>,
pub pitch_choice_parm2: Vec<String>,
pub tuning: Vec<i32>,
pub tuning_parm: Vec<String>,
pub registers: Vec<InstrumentRegister>,
pub description: Option<String>,
}Fields§
§flags: Option<InstrumentFlags>§size: Option<i32>§value: Option<i32>§material_size: Option<i32>§pieces: Vec<InstrumentPiece>§pitch_range_min: Option<i32>§pitch_range_max: Option<i32>§volume_mb_min: Option<i32>§volume_mb_max: Option<i32>§sound_production: Vec<i32>§sound_production_parm1: Vec<String>§sound_production_parm2: Vec<String>§pitch_choice: Vec<i32>§pitch_choice_parm1: Vec<String>§pitch_choice_parm2: Vec<String>§tuning: Vec<i32>§tuning_parm: Vec<String>§registers: Vec<InstrumentRegister>§description: Option<String>Implementations§
Source§impl InstrumentDef
impl InstrumentDef
Sourcepub fn material_size(&self) -> i32
pub fn material_size(&self) -> i32
Returns the value of material_size, or the default value if material_size is unset.
Sourcepub fn pitch_range_min(&self) -> i32
pub fn pitch_range_min(&self) -> i32
Returns the value of pitch_range_min, or the default value if pitch_range_min is unset.
Sourcepub fn pitch_range_max(&self) -> i32
pub fn pitch_range_max(&self) -> i32
Returns the value of pitch_range_max, or the default value if pitch_range_max is unset.
Sourcepub fn volume_mb_min(&self) -> i32
pub fn volume_mb_min(&self) -> i32
Returns the value of volume_mb_min, or the default value if volume_mb_min is unset.
Sourcepub fn volume_mb_max(&self) -> i32
pub fn volume_mb_max(&self) -> i32
Returns the value of volume_mb_max, or the default value if volume_mb_max is unset.
Sourcepub fn sound_production(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SoundProductionType>>
pub fn sound_production( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<SoundProductionType>>
Returns an iterator which yields the valid enum values contained in sound_production.
Sourcepub fn push_sound_production(&mut self, value: SoundProductionType)
pub fn push_sound_production(&mut self, value: SoundProductionType)
Appends the provided enum value to sound_production.
Sourcepub fn pitch_choice(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<PitchChoiceType>>
pub fn pitch_choice( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<PitchChoiceType>>
Returns an iterator which yields the valid enum values contained in pitch_choice.
Sourcepub fn push_pitch_choice(&mut self, value: PitchChoiceType)
pub fn push_pitch_choice(&mut self, value: PitchChoiceType)
Appends the provided enum value to pitch_choice.
Sourcepub fn tuning(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<TuningType>>
pub fn tuning( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(i32) -> Option<TuningType>>
Returns an iterator which yields the valid enum values contained in tuning.
Sourcepub fn push_tuning(&mut self, value: TuningType)
pub fn push_tuning(&mut self, value: TuningType)
Appends the provided enum value to tuning.
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Trait Implementations§
Source§impl Clone for InstrumentDef
impl Clone for InstrumentDef
Source§fn clone(&self) -> InstrumentDef
fn clone(&self) -> InstrumentDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InstrumentDef
impl Debug for InstrumentDef
Source§impl Default for InstrumentDef
impl Default for InstrumentDef
Source§impl Message for InstrumentDef
impl Message for InstrumentDef
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl Name for InstrumentDef
impl Name for InstrumentDef
Source§const NAME: &'static str = "InstrumentDef"
const NAME: &'static str = "InstrumentDef"
Message.
This name is the same as it appears in the source .proto file, e.g. FooBar.Source§const PACKAGE: &'static str = "ItemdefInstrument"
const PACKAGE: &'static str = "ItemdefInstrument"
., e.g. google.protobuf.Source§fn full_name() -> String
fn full_name() -> String
Message.
It’s prefixed with the package name and names of any parent messages,
e.g. google.rpc.BadRequest.FieldViolation.
By default, this is the package name followed by the message name.
Fully-qualified names must be unique within a domain of Type URLs.