pub struct Mapping {
pub id: i64,
pub key_name: Option<String>,
pub key_name_location: Option<String>,
pub key_type: Box<TypeName>,
pub node_type: MappingNodeType,
pub src: SourceLocation,
pub type_descriptions: TypeDescriptions,
pub value_name: Option<String>,
pub value_name_location: Option<String>,
pub value_type: Box<TypeName>,
}
Expand description
Mapping
JSON schema
{
"type": "object",
"required": [
"id",
"keyType",
"nodeType",
"src",
"typeDescriptions",
"valueType"
],
"properties": {
"id": {
"type": "integer"
},
"keyName": {
"type": "string"
},
"keyNameLocation": {
"type": "string"
},
"keyType": {
"$ref": "#/definitions/TypeName"
},
"nodeType": {
"enum": [
"Mapping"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
},
"typeDescriptions": {
"$ref": "#/definitions/TypeDescriptions"
},
"valueName": {
"type": "string"
},
"valueNameLocation": {
"type": "string"
},
"valueType": {
"$ref": "#/definitions/TypeName"
}
},
"additionalProperties": false
}
Fields§
§id: i64
§key_name: Option<String>
§key_name_location: Option<String>
§key_type: Box<TypeName>
§node_type: MappingNodeType
§src: SourceLocation
§type_descriptions: TypeDescriptions
§value_name: Option<String>
§value_name_location: Option<String>
§value_type: Box<TypeName>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mapping
impl<'de> Deserialize<'de> for Mapping
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
Auto Trait Implementations§
impl Freeze for Mapping
impl RefUnwindSafe for Mapping
impl Send for Mapping
impl Sync for Mapping
impl Unpin for Mapping
impl UnwindSafe for Mapping
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