pub struct KillswitchState {
pub on: bool,
pub reason: Option<String>,
}Fields§
§on: bool§reason: Option<String>Trait Implementations§
Source§impl Clone for KillswitchState
impl Clone for KillswitchState
Source§fn clone(&self) -> KillswitchState
fn clone(&self) -> KillswitchState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KillswitchState
impl Debug for KillswitchState
Source§impl Default for KillswitchState
impl Default for KillswitchState
Source§fn default() -> KillswitchState
fn default() -> KillswitchState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KillswitchState
impl<'de> Deserialize<'de> for KillswitchState
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
Auto Trait Implementations§
impl Freeze for KillswitchState
impl RefUnwindSafe for KillswitchState
impl Send for KillswitchState
impl Sync for KillswitchState
impl Unpin for KillswitchState
impl UnsafeUnpin for KillswitchState
impl UnwindSafe for KillswitchState
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