pub struct GlowParameter {Show 21 fields
pub number: i32,
pub identifier: Option<String>,
pub description: Option<String>,
pub value: Option<EmberValue>,
pub minimum: Option<EmberValue>,
pub maximum: Option<EmberValue>,
pub access: Option<ParameterAccess>,
pub format: Option<String>,
pub enumeration: Option<String>,
pub factor: Option<i32>,
pub is_online: Option<bool>,
pub formula: Option<String>,
pub step: Option<i32>,
pub default: Option<EmberValue>,
pub parameter_type: Option<ParameterType>,
pub stream_identifier: Option<i32>,
pub enum_map: Vec<StringIntegerPair>,
pub stream_descriptor: Option<StreamDescriptor>,
pub schema_identifiers: Option<String>,
pub template_reference: Option<EmberPath>,
pub children: Vec<GlowElement>,
}Expand description
A parameter in the Ember+ tree.
Fields§
§number: i32Parameter number (within parent)
identifier: Option<String>Identifier string
description: Option<String>Description string
value: Option<EmberValue>Current value
minimum: Option<EmberValue>Minimum value
maximum: Option<EmberValue>Maximum value
access: Option<ParameterAccess>Access mode
format: Option<String>Format string
enumeration: Option<String>Enumeration string (for enum types)
factor: Option<i32>Factor for value conversion
is_online: Option<bool>Is online
formula: Option<String>Formula for value transformation
step: Option<i32>Step size
default: Option<EmberValue>Default value
parameter_type: Option<ParameterType>Parameter type
stream_identifier: Option<i32>Stream identifier
enum_map: Vec<StringIntegerPair>Enumeration map
stream_descriptor: Option<StreamDescriptor>Stream descriptor
schema_identifiers: Option<String>Schema identifiers
template_reference: Option<EmberPath>Template reference
children: Vec<GlowElement>Child elements
Implementations§
Source§impl GlowParameter
impl GlowParameter
Sourcepub fn with_value(number: i32, identifier: &str, value: EmberValue) -> Self
pub fn with_value(number: i32, identifier: &str, value: EmberValue) -> Self
Create a parameter with identifier and value.
Sourcepub fn description(self, description: &str) -> Self
pub fn description(self, description: &str) -> Self
Set the description.
Sourcepub fn access(self, access: ParameterAccess) -> Self
pub fn access(self, access: ParameterAccess) -> Self
Set the access mode.
Sourcepub fn minimum(self, min: EmberValue) -> Self
pub fn minimum(self, min: EmberValue) -> Self
Set the minimum value.
Sourcepub fn maximum(self, max: EmberValue) -> Self
pub fn maximum(self, max: EmberValue) -> Self
Set the maximum value.
Trait Implementations§
Source§impl Clone for GlowParameter
impl Clone for GlowParameter
Source§fn clone(&self) -> GlowParameter
fn clone(&self) -> GlowParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlowParameter
impl Debug for GlowParameter
Source§impl Default for GlowParameter
impl Default for GlowParameter
Source§fn default() -> GlowParameter
fn default() -> GlowParameter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GlowParameter
impl RefUnwindSafe for GlowParameter
impl Send for GlowParameter
impl Sync for GlowParameter
impl Unpin for GlowParameter
impl UnsafeUnpin for GlowParameter
impl UnwindSafe for GlowParameter
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