Struct ethers_solc::artifacts::ast::Node
source · pub struct Node {
pub id: Option<usize>,
pub node_type: NodeType,
pub src: SourceLocation,
pub nodes: Vec<Node>,
pub body: Option<Box<Node>>,
pub other: BTreeMap<String, Value>,
}
Fields§
§id: Option<usize>
The node ID.
node_type: NodeType
The node type.
src: SourceLocation
The location of the node in the source file.
nodes: Vec<Node>
Child nodes for some node types.
body: Option<Box<Node>>
Body node for some node types.
other: BTreeMap<String, Value>
Node attributes that were not deserialized.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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
impl Eq for Node
impl StructuralEq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.