pub struct EnumDefinition {
pub canonical_name: String,
pub documentation: Option<StructuredDocumentation>,
pub id: i64,
pub members: Vec<EnumValue>,
pub name: String,
pub name_location: Option<String>,
pub node_type: EnumDefinitionNodeType,
pub src: SourceLocation,
}
Expand description
EnumDefinition
JSON schema
{
"type": "object",
"required": [
"canonicalName",
"id",
"members",
"name",
"nodeType",
"src"
],
"properties": {
"canonicalName": {
"type": "string"
},
"documentation": {
"anyOf": [
{
"$ref": "#/definitions/StructuredDocumentation"
},
{
"type": "null"
}
]
},
"id": {
"type": "integer"
},
"members": {
"type": "array",
"items": {
"$ref": "#/definitions/EnumValue"
}
},
"name": {
"type": "string"
},
"nameLocation": {
"type": "string"
},
"nodeType": {
"enum": [
"EnumDefinition"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
}
},
"additionalProperties": false
}
Fields§
§canonical_name: String
§documentation: Option<StructuredDocumentation>
§id: i64
§members: Vec<EnumValue>
§name: String
§name_location: Option<String>
§node_type: EnumDefinitionNodeType
§src: SourceLocation
Trait Implementations§
Source§impl Clone for EnumDefinition
impl Clone for EnumDefinition
Source§fn clone(&self) -> EnumDefinition
fn clone(&self) -> EnumDefinition
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 EnumDefinition
impl Debug for EnumDefinition
Source§impl<'de> Deserialize<'de> for EnumDefinition
impl<'de> Deserialize<'de> for EnumDefinition
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<&EnumDefinition> for EnumDefinition
impl From<&EnumDefinition> for EnumDefinition
Source§fn from(value: &EnumDefinition) -> Self
fn from(value: &EnumDefinition) -> Self
Converts to this type from the input type.
Source§impl From<EnumDefinition> for ContractDefinitionNodesItem
impl From<EnumDefinition> for ContractDefinitionNodesItem
Source§fn from(value: EnumDefinition) -> Self
fn from(value: EnumDefinition) -> 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.
Auto Trait Implementations§
impl Freeze for EnumDefinition
impl RefUnwindSafe for EnumDefinition
impl Send for EnumDefinition
impl Sync for EnumDefinition
impl Unpin for EnumDefinition
impl UnwindSafe for EnumDefinition
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