Struct settings_schema::SwitchDefault
source · pub struct SwitchDefault<C> {
pub enabled: bool,
pub content: C,
}Expand description
Type used to specify the default value for type Switch.
It allows setting the enabled state and its content when set to enabled.
Fields§
§enabled: bool§content: CTrait Implementations§
source§impl<C: Clone> Clone for SwitchDefault<C>
impl<C: Clone> Clone for SwitchDefault<C>
source§fn clone(&self) -> SwitchDefault<C>
fn clone(&self) -> SwitchDefault<C>
Returns a copy 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<C: Debug> Debug for SwitchDefault<C>
impl<C: Debug> Debug for SwitchDefault<C>
source§impl<'de, C> Deserialize<'de> for SwitchDefault<C>where
C: Deserialize<'de>,
impl<'de, C> Deserialize<'de> for SwitchDefault<C>where
C: Deserialize<'de>,
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