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
source§impl PartialEq for Node
impl PartialEq for Node
impl Eq 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<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.