pub struct ParamSpec {
pub name: String,
pub param_type: ParamType,
pub default: ParamValue,
pub min: Option<f32>,
pub max: Option<f32>,
pub step: Option<f32>,
pub unit: ParamUnit,
pub enum_values: Vec<String>,
}Expand description
One runtime effect parameter.
Fields§
§name: StringWGSL-safe field name.
param_type: ParamTypeStorage and authoring type.
default: ParamValueValue used when a project omits this parameter.
min: Option<f32>Optional inclusive scalar minimum.
max: Option<f32>Optional inclusive scalar maximum.
step: Option<f32>Optional positive authoring increment.
unit: ParamUnitUI and serialization unit.
enum_values: Vec<String>Named values for ParamType::Enum.
Trait Implementations§
impl StructuralPartialEq for ParamSpec
Auto Trait Implementations§
impl Freeze for ParamSpec
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpec
impl Sync for ParamSpec
impl Unpin for ParamSpec
impl UnsafeUnpin for ParamSpec
impl UnwindSafe for ParamSpec
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