Struct ethers_solc::artifacts::ast::ModifierDefinition
source · pub struct ModifierDefinition {
pub id: usize,
pub src: SourceLocation,
pub name: String,
pub name_location: Option<SourceLocation>,
pub base_modifiers: Vec<usize>,
pub body: Block,
pub documentation: Option<StructuredDocumentation>,
pub overrides: Option<OverrideSpecifier>,
pub parameters: ParameterList,
pub is_virtual: bool,
pub visibility: Visibility,
}
Expand description
A modifier definition.
Fields§
§id: usize
§src: SourceLocation
§name: String
§name_location: Option<SourceLocation>
§base_modifiers: Vec<usize>
§body: Block
§documentation: Option<StructuredDocumentation>
§overrides: Option<OverrideSpecifier>
§parameters: ParameterList
§is_virtual: bool
§visibility: Visibility
Trait Implementations§
source§impl Clone for ModifierDefinition
impl Clone for ModifierDefinition
source§fn clone(&self) -> ModifierDefinition
fn clone(&self) -> ModifierDefinition
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 ModifierDefinition
impl Debug for ModifierDefinition
source§impl<'de> Deserialize<'de> for ModifierDefinition
impl<'de> Deserialize<'de> for ModifierDefinition
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 ModifierDefinition
impl PartialEq for ModifierDefinition
source§fn eq(&self, other: &ModifierDefinition) -> bool
fn eq(&self, other: &ModifierDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ModifierDefinition
impl Serialize for ModifierDefinition
impl Eq for ModifierDefinition
impl StructuralPartialEq for ModifierDefinition
Auto Trait Implementations§
impl RefUnwindSafe for ModifierDefinition
impl Send for ModifierDefinition
impl Sync for ModifierDefinition
impl Unpin for ModifierDefinition
impl UnwindSafe for ModifierDefinition
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.