Struct ethers_solc::artifacts::ast::EnumDefinition
source · pub struct EnumDefinition {
pub id: usize,
pub src: SourceLocation,
pub name: String,
pub name_location: Option<SourceLocation>,
pub canonical_name: String,
pub members: Vec<EnumValue>,
}
Expand description
An enum definition.
Fields§
§id: usize
§src: SourceLocation
§name: String
§name_location: Option<SourceLocation>
§canonical_name: String
§members: Vec<EnumValue>
Trait Implementations§
source§impl Clone for EnumDefinition
impl Clone for EnumDefinition
source§fn clone(&self) -> EnumDefinition
fn clone(&self) -> EnumDefinition
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 EnumDefinition
impl Debug for EnumDefinition
source§impl<'de> Deserialize<'de> for EnumDefinition
impl<'de> Deserialize<'de> for EnumDefinition
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 for EnumDefinition
impl PartialEq for EnumDefinition
source§fn eq(&self, other: &EnumDefinition) -> bool
fn eq(&self, other: &EnumDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EnumDefinition
impl Serialize for EnumDefinition
impl Eq for EnumDefinition
impl StructuralPartialEq for EnumDefinition
Auto Trait Implementations§
impl RefUnwindSafe for EnumDefinition
impl Send for EnumDefinition
impl Sync for EnumDefinition
impl Unpin for EnumDefinition
impl UnwindSafe for EnumDefinition
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.