pub struct VariableDeclarationStatement {
pub assignments: Vec<Option<i64>>,
pub declarations: Vec<Option<VariableDeclaration>>,
pub documentation: Option<String>,
pub id: i64,
pub initial_value: Option<Expression>,
pub node_type: VariableDeclarationStatementNodeType,
pub src: SourceLocation,
}
Expand description
VariableDeclarationStatement
JSON schema
{
"type": "object",
"required": [
"assignments",
"declarations",
"id",
"nodeType",
"src"
],
"properties": {
"assignments": {
"type": "array",
"items": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
]
}
},
"declarations": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/VariableDeclaration"
},
{
"type": "null"
}
]
}
},
"documentation": {
"type": "string"
},
"id": {
"type": "integer"
},
"initialValue": {
"anyOf": [
{
"$ref": "#/definitions/Expression"
},
{
"type": "null"
}
]
},
"nodeType": {
"enum": [
"VariableDeclarationStatement"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
}
},
"additionalProperties": false
}
Fields§
§assignments: Vec<Option<i64>>
§declarations: Vec<Option<VariableDeclaration>>
§documentation: Option<String>
§id: i64
§initial_value: Option<Expression>
§node_type: VariableDeclarationStatementNodeType
§src: SourceLocation
Trait Implementations§
Source§impl Clone for VariableDeclarationStatement
impl Clone for VariableDeclarationStatement
Source§fn clone(&self) -> VariableDeclarationStatement
fn clone(&self) -> VariableDeclarationStatement
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 VariableDeclarationStatement
impl Debug for VariableDeclarationStatement
Source§impl<'de> Deserialize<'de> for VariableDeclarationStatement
impl<'de> Deserialize<'de> for VariableDeclarationStatement
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<&VariableDeclarationStatement> for VariableDeclarationStatement
impl From<&VariableDeclarationStatement> for VariableDeclarationStatement
Source§fn from(value: &VariableDeclarationStatement) -> Self
fn from(value: &VariableDeclarationStatement) -> Self
Converts to this type from the input type.
Source§impl From<VariableDeclarationStatement> for ForStatementInitializationExpression
impl From<VariableDeclarationStatement> for ForStatementInitializationExpression
Source§fn from(value: VariableDeclarationStatement) -> Self
fn from(value: VariableDeclarationStatement) -> Self
Converts to this type from the input type.
Source§impl From<VariableDeclarationStatement> for Statement
impl From<VariableDeclarationStatement> for Statement
Source§fn from(value: VariableDeclarationStatement) -> Self
fn from(value: VariableDeclarationStatement) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VariableDeclarationStatement
impl RefUnwindSafe for VariableDeclarationStatement
impl Send for VariableDeclarationStatement
impl Sync for VariableDeclarationStatement
impl Unpin for VariableDeclarationStatement
impl UnwindSafe for VariableDeclarationStatement
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