Struct lotus_script::message::BatterySwitch
source · pub struct BatterySwitch(pub bool);
Expand description
Represents the state of the battery switch.
A simple wrapper around a boolean value indicating whether the battery is switched on (true) or off (false).
Tuple Fields§
§0: bool
Trait Implementations§
source§impl Debug for BatterySwitch
impl Debug for BatterySwitch
source§impl<'de> Deserialize<'de> for BatterySwitch
impl<'de> Deserialize<'de> for BatterySwitch
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 MessageType for BatterySwitch
impl MessageType for BatterySwitch
source§const MESSAGE_META: MessageMeta = _
const MESSAGE_META: MessageMeta = _
The metadata for the message type.
Auto Trait Implementations§
impl Freeze for BatterySwitch
impl RefUnwindSafe for BatterySwitch
impl Send for BatterySwitch
impl Sync for BatterySwitch
impl Unpin for BatterySwitch
impl UnwindSafe for BatterySwitch
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