pub struct ExplicitEnumVariantDescription {
pub docs: Vec<String>,
pub name: String,
}
Expand description
An explicit enum is an enum that gets serialized by name instead of discriminant.
This makes it easier for humans to read readable in the transaction output.
It cannot have data fields, only simple enums allowed.
Fields§
§docs: Vec<String>
§name: String
Implementations§
Trait Implementations§
Source§impl Clone for ExplicitEnumVariantDescription
impl Clone for ExplicitEnumVariantDescription
Source§fn clone(&self) -> ExplicitEnumVariantDescription
fn clone(&self) -> ExplicitEnumVariantDescription
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 moreAuto Trait Implementations§
impl Freeze for ExplicitEnumVariantDescription
impl RefUnwindSafe for ExplicitEnumVariantDescription
impl Send for ExplicitEnumVariantDescription
impl Sync for ExplicitEnumVariantDescription
impl Unpin for ExplicitEnumVariantDescription
impl UnwindSafe for ExplicitEnumVariantDescription
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