pub struct DslParseResult {
pub tree: Option<Tree>,
pub diagnostics: Vec<Diagnostic>,
pub success: bool,
pub source: String,
}Expand description
Elasticsearch DSL 解析结果
Fields§
§tree: Option<Tree>解析后的 AST Tree
diagnostics: Vec<Diagnostic>诊断信息
success: bool解析是否成功(Tree-sitter 总是能生成树,即使有错误)
source: String原始 DSL 文本
Trait Implementations§
Source§impl Clone for DslParseResult
impl Clone for DslParseResult
Source§fn clone(&self) -> DslParseResult
fn clone(&self) -> DslParseResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DslParseResult
impl RefUnwindSafe for DslParseResult
impl Send for DslParseResult
impl Sync for DslParseResult
impl Unpin for DslParseResult
impl UnwindSafe for DslParseResult
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