pub struct Block {
pub documentation: Option<String>,
pub id: i64,
pub node_type: BlockNodeType,
pub src: SourceLocation,
pub statements: Option<Vec<Statement>>,
}
Expand description
Block
JSON schema
{
"type": "object",
"required": [
"id",
"nodeType",
"src"
],
"properties": {
"documentation": {
"type": "string"
},
"id": {
"type": "integer"
},
"nodeType": {
"enum": [
"Block"
]
},
"src": {
"$ref": "#/definitions/SourceLocation"
},
"statements": {
"anyOf": [
{
"type": "array",
"items": {
"$ref": "#/definitions/Statement"
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
Fields§
§documentation: Option<String>
§id: i64
§node_type: BlockNodeType
§src: SourceLocation
§statements: Option<Vec<Statement>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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<Block> for DoWhileStatementBody
impl From<Block> for DoWhileStatementBody
Source§impl From<Block> for ForStatementBody
impl From<Block> for ForStatementBody
Source§impl From<Block> for IfStatementFalseBody
impl From<Block> for IfStatementFalseBody
Source§impl From<Block> for IfStatementTrueBody
impl From<Block> for IfStatementTrueBody
Source§impl From<Block> for WhileStatementBody
impl From<Block> for WhileStatementBody
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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