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: StringThe id associated to a request for an AST
file_name: StringThe filename associated to a source code file
code: StringThe code to be represented as an AST
comment: boolIf true, nodes representing comments are ignored
span: boolIf 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
