pub struct Preset {
pub name: Label,
pub buttons: Vec<ButtonConfig, MAX_BUTTONS>,
pub encoders: Vec<EncoderConfig, MAX_ENCODERS>,
pub analog: Vec<AnalogConfig, MAX_ANALOG>,
pub defaults: InitialState,
pub on_enter: Vec<Action, MAX_ACTIONS>,
pub on_exit: Vec<Action, MAX_ACTIONS>,
pub triggers: Vec<Trigger, MAX_TRIGGERS>,
}Fields§
§name: Label§encoders: Vec<EncoderConfig, MAX_ENCODERS>§analog: Vec<AnalogConfig, MAX_ANALOG>§defaults: InitialStateInitial state applied on first boot / after upload (before any user interaction).
on_enter: Vec<Action, MAX_ACTIONS>Actions fired when this preset becomes active (on switch or boot).
on_exit: Vec<Action, MAX_ACTIONS>Actions fired when leaving this preset (before switching to another).
triggers: Vec<Trigger, MAX_TRIGGERS>Incoming MIDI triggers: react to external messages by changing state or firing actions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Preset
impl<'de> Deserialize<'de> for Preset
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 Preset
impl StructuralPartialEq for Preset
Auto Trait Implementations§
impl Freeze for Preset
impl RefUnwindSafe for Preset
impl Send for Preset
impl Sync for Preset
impl Unpin for Preset
impl UnsafeUnpin for Preset
impl UnwindSafe for Preset
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