Struct wasmflow_interface::EnumSignature
source · [−]pub struct EnumSignature {
pub name: String,
pub values: Vec<EnumVariant>,
}
Expand description
Signatures of enum type definitions.
Fields
name: String
The name of the enum.
values: Vec<EnumVariant>
The variants in the enum.
Implementations
sourceimpl EnumSignature
impl EnumSignature
sourcepub fn new<T: AsRef<str>>(name: T, values: Vec<EnumVariant>) -> Self
pub fn new<T: AsRef<str>>(name: T, values: Vec<EnumVariant>) -> Self
Constructor for EnumSignature
Trait Implementations
sourceimpl Clone for EnumSignature
impl Clone for EnumSignature
sourcefn clone(&self) -> EnumSignature
fn clone(&self) -> EnumSignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnumSignature
impl Debug for EnumSignature
sourceimpl Default for EnumSignature
impl Default for EnumSignature
sourcefn default() -> EnumSignature
fn default() -> EnumSignature
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EnumSignature
impl<'de> Deserialize<'de> for EnumSignature
sourcefn 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
sourceimpl PartialEq<EnumSignature> for EnumSignature
impl PartialEq<EnumSignature> for EnumSignature
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &EnumSignature) -> bool
fn ne(&self, other: &EnumSignature) -> bool
This method tests for !=
.
sourceimpl Serialize for EnumSignature
impl Serialize 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more