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