Struct ethers_solc::artifacts::ast::ContractDefinition
source · pub struct ContractDefinition {Show 17 fields
pub id: usize,
pub src: SourceLocation,
pub name: String,
pub name_location: Option<SourceLocation>,
pub is_abstract: bool,
pub base_contracts: Vec<InheritanceSpecifier>,
pub canonical_name: Option<String>,
pub contract_dependencies: Vec<usize>,
pub kind: ContractKind,
pub documentation: Option<StructuredDocumentation>,
pub fully_implemented: bool,
pub linearized_base_contracts: Vec<usize>,
pub nodes: Vec<ContractDefinitionPart>,
pub scope: usize,
pub used_errors: Vec<usize>,
pub used_events: Vec<usize>,
pub internal_function_ids: BTreeMap<usize, usize>,
}
Expand description
A contract definition.
Fields§
§id: usize
§src: SourceLocation
§name: String
§name_location: Option<SourceLocation>
§is_abstract: bool
§base_contracts: Vec<InheritanceSpecifier>
§canonical_name: Option<String>
§contract_dependencies: Vec<usize>
§kind: ContractKind
§documentation: Option<StructuredDocumentation>
§fully_implemented: bool
§linearized_base_contracts: Vec<usize>
§nodes: Vec<ContractDefinitionPart>
§scope: usize
§used_errors: Vec<usize>
§used_events: Vec<usize>
§internal_function_ids: BTreeMap<usize, usize>
Trait Implementations§
source§impl Clone for ContractDefinition
impl Clone for ContractDefinition
source§fn clone(&self) -> ContractDefinition
fn clone(&self) -> ContractDefinition
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 ContractDefinition
impl Debug for ContractDefinition
source§impl<'de> Deserialize<'de> for ContractDefinition
impl<'de> Deserialize<'de> for ContractDefinition
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 ContractDefinition
impl PartialEq for ContractDefinition
source§fn eq(&self, other: &ContractDefinition) -> bool
fn eq(&self, other: &ContractDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ContractDefinition
impl Serialize for ContractDefinition
impl Eq for ContractDefinition
impl StructuralPartialEq for ContractDefinition
Auto Trait Implementations§
impl RefUnwindSafe for ContractDefinition
impl Send for ContractDefinition
impl Sync for ContractDefinition
impl Unpin for ContractDefinition
impl UnwindSafe for ContractDefinition
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.