pub struct Switch {
pub state: bool,
pub lock: bool,
pub devicelock: bool,
pub mode: String,
}
Fields§
§state: bool
§lock: bool
§devicelock: bool
§mode: String
Trait Implementations§
source§impl<'de> Deserialize<'de> for Switch
impl<'de> Deserialize<'de> for Switch
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 Switch
impl PartialEq for Switch
impl StructuralPartialEq for Switch
Auto Trait Implementations§
impl RefUnwindSafe for Switch
impl Send for Switch
impl Sync for Switch
impl Unpin for Switch
impl UnwindSafe for Switch
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