pub struct ParamInfo {Show 15 fields
pub id: u32,
pub name: String,
pub module: String,
pub min: f64,
pub max: f64,
pub default: f64,
pub value: f64,
pub default_text: String,
pub value_text: String,
pub unit: Option<String>,
pub stepped: bool,
pub hidden: bool,
pub readonly: bool,
pub bypass: bool,
pub automatable: bool,
}Expand description
One parameter, with its range in plain (plugin) units.
Fields§
§id: u32§name: String§module: String§min: f64§max: f64§default: f64§value: f64§default_text: StringDisplay text of the default and current values, from the plugin.
value_text: String§unit: Option<String>Unit inferred from the display text (dB, Hz, %, ms…), when any.
stepped: bool§readonly: bool§bypass: bool§automatable: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for ParamInfo
impl<'de> Deserialize<'de> for ParamInfo
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 StructuralPartialEq for ParamInfo
Auto Trait Implementations§
impl Forget for ParamInfo
impl Freeze for ParamInfo
impl Move for ParamInfo
impl RefUnwindSafe for ParamInfo
impl Send for ParamInfo
impl Sync for ParamInfo
impl Unpin for ParamInfo
impl UnsafeUnpin for ParamInfo
impl UnwindSafe for ParamInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more