pub struct Widget {
pub id: String,
pub label: String,
pub kind: Kind,
pub value: Value,
pub unit: Option<String>,
pub x_unit: Option<String>,
pub min: Option<f64>,
pub max: Option<f64>,
}Fields§
§id: String§label: String§kind: Kind§value: Value§unit: Option<String>§x_unit: Option<String>§min: Option<f64>§max: Option<f64>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Widget
impl<'de> Deserialize<'de> for Widget
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 Widget
Auto Trait Implementations§
impl Forget for Widget
impl Freeze for Widget
impl Move for Widget
impl RefUnwindSafe for Widget
impl Send for Widget
impl Sync for Widget
impl Unpin for Widget
impl UnsafeUnpin for Widget
impl UnwindSafe for Widget
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