pub struct Enableable {
pub enabled: Option<bool>,
}
Expand description
Enableable : Something that can be enabled and thus also disabled.
Fields§
§enabled: Option<bool>
Implementations§
Source§impl Enableable
impl Enableable
Sourcepub fn new() -> Enableable
pub fn new() -> Enableable
Something that can be enabled and thus also disabled.
Trait Implementations§
Source§impl Clone for Enableable
impl Clone for Enableable
Source§fn clone(&self) -> Enableable
fn clone(&self) -> Enableable
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 Enableable
impl Debug for Enableable
Source§impl Default for Enableable
impl Default for Enableable
Source§fn default() -> Enableable
fn default() -> Enableable
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Enableable
impl<'de> Deserialize<'de> for Enableable
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 Enableable
impl PartialEq for Enableable
Source§impl Serialize for Enableable
impl Serialize for Enableable
impl StructuralPartialEq for Enableable
Auto Trait Implementations§
impl Freeze for Enableable
impl RefUnwindSafe for Enableable
impl Send for Enableable
impl Sync for Enableable
impl Unpin for Enableable
impl UnwindSafe for Enableable
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