Struct wick_interface_types::EnumVariant
source · pub struct EnumVariant {
pub name: String,
pub index: Option<u32>,
pub value: Option<String>,
}
Expand description
An enum variant definition
Fields§
§name: String
The name of the variant.
index: Option<u32>
The index of the variant.
value: Option<String>
The optional value of the variant.
Implementations§
Trait Implementations§
source§impl Clone for EnumVariant
impl Clone for EnumVariant
source§fn clone(&self) -> EnumVariant
fn clone(&self) -> EnumVariant
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 EnumVariant
impl Debug for EnumVariant
source§impl Default for EnumVariant
impl Default for EnumVariant
source§fn default() -> EnumVariant
fn default() -> EnumVariant
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EnumVariant
impl<'de> Deserialize<'de> for EnumVariant
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<EnumVariant> for EnumVariant
impl PartialEq<EnumVariant> for EnumVariant
source§fn eq(&self, other: &EnumVariant) -> bool
fn eq(&self, other: &EnumVariant) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.