Struct wick_interface_types::EnumSignature
source · pub struct EnumSignature {
pub name: String,
pub variants: Vec<EnumVariant>,
}
Expand description
Signatures of enum type definitions.
Fields§
§name: String
The name of the enum.
variants: Vec<EnumVariant>
The variants in the enum.
Implementations§
source§impl EnumSignature
impl EnumSignature
sourcepub fn new<T: AsRef<str>>(name: T, variants: Vec<EnumVariant>) -> Self
pub fn new<T: AsRef<str>>(name: T, variants: Vec<EnumVariant>) -> Self
Constructor for EnumSignature
Trait Implementations§
source§impl Clone for EnumSignature
impl Clone for EnumSignature
source§fn clone(&self) -> EnumSignature
fn clone(&self) -> EnumSignature
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 EnumSignature
impl Debug for EnumSignature
source§impl Default for EnumSignature
impl Default for EnumSignature
source§fn default() -> EnumSignature
fn default() -> EnumSignature
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EnumSignature
impl<'de> Deserialize<'de> for EnumSignature
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<EnumSignature> for EnumSignature
impl PartialEq<EnumSignature> for EnumSignature
source§fn eq(&self, other: &EnumSignature) -> bool
fn eq(&self, other: &EnumSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.