pub struct AstPayload {
pub file: String,
pub query: String,
pub results: Vec<AstResult>,
}Expand description
AST/structural query payload.
Fields§
§file: StringFile that was queried
query: StringTree-sitter query or query type
results: Vec<AstResult>Query results
Trait Implementations§
Source§impl Clone for AstPayload
impl Clone for AstPayload
Source§fn clone(&self) -> AstPayload
fn clone(&self) -> AstPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
Source§impl PartialEq for AstPayload
impl PartialEq for AstPayload
Source§fn eq(&self, other: &AstPayload) -> bool
fn eq(&self, other: &AstPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AstPayload
impl Serialize for AstPayload
impl StructuralPartialEq for AstPayload
Auto Trait Implementations§
impl Freeze for AstPayload
impl RefUnwindSafe for AstPayload
impl Send for AstPayload
impl Sync for AstPayload
impl Unpin for AstPayload
impl UnsafeUnpin 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