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