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 ==
.source§impl Serialize for EnumSignature
impl Serialize for EnumSignature
impl Eq for EnumSignature
impl StructuralEq for EnumSignature
impl StructuralPartialEq for EnumSignature
Auto Trait Implementations§
impl RefUnwindSafe for EnumSignature
impl Send for EnumSignature
impl Sync for EnumSignature
impl Unpin for EnumSignature
impl UnwindSafe for EnumSignature
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.