pub struct NumberConfig {
pub common: EntityCommonConfig,
pub unit: Option<NumberUnit>,
pub min: Option<f32>,
pub max: Option<f32>,
pub step: Option<f32>,
pub mode: NumberMode,
pub class: NumberClass,
pub command_policy: CommandPolicy,
}Expand description
Configuration for a number entity.
See CommandPolicy for details on how commands are handled.
Fields§
§common: EntityCommonConfig§unit: Option<NumberUnit>§min: Option<f32>§max: Option<f32>§step: Option<f32>§mode: NumberMode§class: NumberClass§command_policy: CommandPolicyTrait Implementations§
Source§impl Debug for NumberConfig
impl Debug for NumberConfig
Auto Trait Implementations§
impl Freeze for NumberConfig
impl RefUnwindSafe for NumberConfig
impl Send for NumberConfig
impl Sync for NumberConfig
impl Unpin for NumberConfig
impl UnwindSafe for NumberConfig
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