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

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.