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