Enum rootasrole_core::database::structs::SCommand
source · pub enum SCommand {
Simple(String),
Complex(Value),
}Variants§
Implementations§
source§impl SCommand
impl SCommand
sourcepub const fn is_simple(&self) -> bool
pub const fn is_simple(&self) -> bool
Returns true if the enum is SCommand::Simple otherwise false
sourcepub const fn is_complex(&self) -> bool
pub const fn is_complex(&self) -> bool
Returns true if the enum is SCommand::Complex otherwise false
Trait Implementations§
source§impl<'de> Deserialize<'de> for SCommand
impl<'de> Deserialize<'de> for SCommand
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
impl Eq for SCommand
impl StructuralPartialEq for SCommand
Auto Trait Implementations§
impl Freeze for SCommand
impl RefUnwindSafe for SCommand
impl Send for SCommand
impl Sync for SCommand
impl Unpin for SCommand
impl UnwindSafe for SCommand
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)