pub struct EnumValue {
pub id: i64,
pub name: String,
pub name_location: Option<String>,
pub node_type: EnumValueNodeType,
pub src: SourceLocation,
}
Expand description
EnumValue
JSON schema
{
"type": "object",
"required": [
"id",
"name",
"nodeType",
"src"
],
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"nameLocation": {
"type": "string"
},
"nodeType": {
"enum": [
"EnumValue"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
}
},
"additionalProperties": false
}
Fields§
§id: i64
§name: String
§name_location: Option<String>
§node_type: EnumValueNodeType
§src: SourceLocation
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EnumValue
impl<'de> Deserialize<'de> for EnumValue
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 EnumValue
impl RefUnwindSafe for EnumValue
impl Send for EnumValue
impl Sync for EnumValue
impl Unpin for EnumValue
impl UnwindSafe for EnumValue
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