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§
Source§impl Debug for AstPayload
impl Debug for AstPayload
Source§impl<'de> Deserialize<'de> for AstPayload
impl<'de> Deserialize<'de> for AstPayload
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
Auto Trait Implementations§
impl Freeze for AstPayload
impl RefUnwindSafe for AstPayload
impl Send for AstPayload
impl Sync for AstPayload
impl Unpin for AstPayload
impl UnwindSafe for AstPayload
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