pub struct ToggleButton {
pub id: String,
pub icon: String,
pub hint: String,
pub on: bool,
pub disabled: bool,
}Expand description
One button of Toggles.
Fields§
§id: String§icon: StringAn icon of the package (icons/<name>.svg) or of the design set.
hint: StringThe words on hover: what the button does.
on: bool§disabled: boolShown but not to be clicked.
Trait Implementations§
Source§impl Clone for ToggleButton
impl Clone for ToggleButton
Source§impl Debug for ToggleButton
impl Debug for ToggleButton
Source§impl Default for ToggleButton
impl Default for ToggleButton
Source§impl<'de> Deserialize<'de> for ToggleButtonwhere
ToggleButton: Default,
impl<'de> Deserialize<'de> for ToggleButtonwhere
ToggleButton: Default,
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
Source§impl PartialEq for ToggleButton
impl PartialEq for ToggleButton
Source§impl Serialize for ToggleButton
impl Serialize for ToggleButton
impl StructuralPartialEq for ToggleButton
Auto Trait Implementations§
impl Forget for ToggleButton
impl Freeze for ToggleButton
impl Move for ToggleButton
impl RefUnwindSafe for ToggleButton
impl Send for ToggleButton
impl Sync for ToggleButton
impl Unpin for ToggleButton
impl UnsafeUnpin for ToggleButton
impl UnwindSafe for ToggleButton
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