#[non_exhaustive]pub enum FxPresetParam {
Contents,
Idx,
Other(String),
}Expand description
A per-effect-preset parameter: the flat properties on each FXPRESET
node. Contents is the preset’s serialized data (typically a
pipe-separated or JSON-ish blob); Idx is the preset slot ordinal.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Contents
Idx
Other(String)
A property without a typed FxPresetParam identifier yet. Holds the raw wire name; the value still rides in the carrying event/command.
Implementations§
Source§impl FxPresetParam
impl FxPresetParam
Sourcepub fn from_known_name(name: &str) -> Option<FxPresetParam>
pub fn from_known_name(name: &str) -> Option<FxPresetParam>
Map a wire property name to its typed FxPresetParam variant if known, without allocating.
Sourcepub fn is_known_name(name: &str) -> bool
pub fn is_known_name(name: &str) -> bool
Check if a wire property name matches a known FxPresetParam variant without allocating.
Sourcepub fn from_name(name: &str) -> FxPresetParam
pub fn from_name(name: &str) -> FxPresetParam
Map a wire property name to its typed FxPresetParam variant. Unknown names map to FxPresetParam::Other, so this is total (never fails).
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
The wire property name for this parameter (inverse of FxPresetParam::from_name).
Sourcepub fn is_known(&self) -> bool
pub fn is_known(&self) -> bool
true if this is a typed variant (not FxPresetParam::Other).