Struct rust_code_analysis::AstPayload [−][src]
pub struct AstPayload {
pub id: String,
pub file_name: String,
pub code: String,
pub comment: bool,
pub span: bool,
}
Expand description
The payload of an Ast
request.
Fields
id: String
The id associated to a request for an AST
file_name: String
The filename associated to a source code file
code: String
The code to be represented as an AST
comment: bool
If true
, nodes representing comments are ignored
span: bool
If true
, the start and end positions of a node in a code
are considered
Trait Implementations
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