pub enum SourceUnitNodesItem {
ContractDefinition(ContractDefinition),
EnumDefinition(EnumDefinition),
ErrorDefinition(ErrorDefinition),
FunctionDefinition(FunctionDefinition),
ImportDirective(ImportDirective),
PragmaDirective(PragmaDirective),
StructDefinition(StructDefinition),
UserDefinedValueTypeDefinition(UserDefinedValueTypeDefinition),
UsingForDirective(UsingForDirective),
VariableDeclaration(VariableDeclaration),
}
Expand description
SourceUnitNodesItem
JSON schema
{
"anyOf": [
{
"$ref": "#/definitions/ContractDefinition"
},
{
"$ref": "#/definitions/EnumDefinition"
},
{
"$ref": "#/definitions/ErrorDefinition"
},
{
"$ref": "#/definitions/FunctionDefinition"
},
{
"$ref": "#/definitions/ImportDirective"
},
{
"$ref": "#/definitions/PragmaDirective"
},
{
"$ref": "#/definitions/StructDefinition"
},
{
"$ref": "#/definitions/UserDefinedValueTypeDefinition"
},
{
"$ref": "#/definitions/UsingForDirective"
},
{
"$ref": "#/definitions/VariableDeclaration"
}
]
}
Variants§
ContractDefinition(ContractDefinition)
EnumDefinition(EnumDefinition)
ErrorDefinition(ErrorDefinition)
FunctionDefinition(FunctionDefinition)
ImportDirective(ImportDirective)
PragmaDirective(PragmaDirective)
StructDefinition(StructDefinition)
UserDefinedValueTypeDefinition(UserDefinedValueTypeDefinition)
UsingForDirective(UsingForDirective)
VariableDeclaration(VariableDeclaration)
Trait Implementations§
Source§impl Clone for SourceUnitNodesItem
impl Clone for SourceUnitNodesItem
Source§fn clone(&self) -> SourceUnitNodesItem
fn clone(&self) -> SourceUnitNodesItem
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 SourceUnitNodesItem
impl Debug for SourceUnitNodesItem
Source§impl<'de> Deserialize<'de> for SourceUnitNodesItem
impl<'de> Deserialize<'de> for SourceUnitNodesItem
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 From<&SourceUnitNodesItem> for SourceUnitNodesItem
impl From<&SourceUnitNodesItem> for SourceUnitNodesItem
Source§fn from(value: &SourceUnitNodesItem) -> Self
fn from(value: &SourceUnitNodesItem) -> Self
Converts to this type from the input type.
Source§impl From<ContractDefinition> for SourceUnitNodesItem
impl From<ContractDefinition> for SourceUnitNodesItem
Source§fn from(value: ContractDefinition) -> Self
fn from(value: ContractDefinition) -> Self
Converts to this type from the input type.
Source§impl From<EnumDefinition> for SourceUnitNodesItem
impl From<EnumDefinition> for SourceUnitNodesItem
Source§fn from(value: EnumDefinition) -> Self
fn from(value: EnumDefinition) -> Self
Converts to this type from the input type.
Source§impl From<ErrorDefinition> for SourceUnitNodesItem
impl From<ErrorDefinition> for SourceUnitNodesItem
Source§fn from(value: ErrorDefinition) -> Self
fn from(value: ErrorDefinition) -> Self
Converts to this type from the input type.
Source§impl From<FunctionDefinition> for SourceUnitNodesItem
impl From<FunctionDefinition> for SourceUnitNodesItem
Source§fn from(value: FunctionDefinition) -> Self
fn from(value: FunctionDefinition) -> Self
Converts to this type from the input type.
Source§impl From<ImportDirective> for SourceUnitNodesItem
impl From<ImportDirective> for SourceUnitNodesItem
Source§fn from(value: ImportDirective) -> Self
fn from(value: ImportDirective) -> Self
Converts to this type from the input type.
Source§impl From<PragmaDirective> for SourceUnitNodesItem
impl From<PragmaDirective> for SourceUnitNodesItem
Source§fn from(value: PragmaDirective) -> Self
fn from(value: PragmaDirective) -> Self
Converts to this type from the input type.
Source§impl From<StructDefinition> for SourceUnitNodesItem
impl From<StructDefinition> for SourceUnitNodesItem
Source§fn from(value: StructDefinition) -> Self
fn from(value: StructDefinition) -> Self
Converts to this type from the input type.
Source§impl From<UserDefinedValueTypeDefinition> for SourceUnitNodesItem
impl From<UserDefinedValueTypeDefinition> for SourceUnitNodesItem
Source§fn from(value: UserDefinedValueTypeDefinition) -> Self
fn from(value: UserDefinedValueTypeDefinition) -> Self
Converts to this type from the input type.
Source§impl From<UsingForDirective> for SourceUnitNodesItem
impl From<UsingForDirective> for SourceUnitNodesItem
Source§fn from(value: UsingForDirective) -> Self
fn from(value: UsingForDirective) -> Self
Converts to this type from the input type.
Source§impl From<VariableDeclaration> for SourceUnitNodesItem
impl From<VariableDeclaration> for SourceUnitNodesItem
Source§fn from(value: VariableDeclaration) -> Self
fn from(value: VariableDeclaration) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SourceUnitNodesItem
impl RefUnwindSafe for SourceUnitNodesItem
impl Send for SourceUnitNodesItem
impl Sync for SourceUnitNodesItem
impl Unpin for SourceUnitNodesItem
impl UnwindSafe for SourceUnitNodesItem
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