pub struct VariantDef {
pub name: String,
pub payload: Option<Payload>,
pub enabled: bool,
}
Fields§
§name: String
§payload: Option<Payload>
§enabled: bool
Implementations§
Source§impl VariantDef
impl VariantDef
pub fn to_enriched_response(&self, toggle_enabled: bool) -> ExtendedVariantDef
Trait Implementations§
Source§impl Clone for VariantDef
impl Clone for VariantDef
Source§fn clone(&self) -> VariantDef
fn clone(&self) -> VariantDef
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 Debug for VariantDef
impl Debug for VariantDef
Source§impl Default for VariantDef
impl Default for VariantDef
Source§impl<'de> Deserialize<'de> for VariantDef
impl<'de> Deserialize<'de> for VariantDef
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 VariantDef
impl PartialEq for VariantDef
Source§impl Serialize for VariantDef
impl Serialize for VariantDef
impl Eq for VariantDef
impl StructuralPartialEq for VariantDef
Auto Trait Implementations§
impl Freeze for VariantDef
impl RefUnwindSafe for VariantDef
impl Send for VariantDef
impl Sync for VariantDef
impl Unpin for VariantDef
impl UnwindSafe for VariantDef
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