pub struct ParseResult {
pub success: bool,
pub node: Option<SttpNode>,
pub error: Option<String>,
pub profile: ParseProfile,
pub strict_valid: bool,
pub diagnostics: Vec<ParseDiagnostic>,
pub canonical_ast: Option<CanonicalAst>,
}Fields§
§success: bool§node: Option<SttpNode>§error: Option<String>§profile: ParseProfile§strict_valid: bool§diagnostics: Vec<ParseDiagnostic>§canonical_ast: Option<CanonicalAst>Implementations§
Source§impl ParseResult
impl ParseResult
pub fn ok(node: SttpNode) -> Self
pub fn ok_with_metadata( node: SttpNode, profile: ParseProfile, strict_valid: bool, diagnostics: Vec<ParseDiagnostic>, canonical_ast: Option<CanonicalAst>, ) -> Self
pub fn fail(error: impl Into<String>) -> Self
pub fn fail_with_metadata( error: impl Into<String>, profile: ParseProfile, diagnostics: Vec<ParseDiagnostic>, canonical_ast: Option<CanonicalAst>, ) -> Self
Trait Implementations§
Source§impl Clone for ParseResult
impl Clone for ParseResult
Source§fn clone(&self) -> ParseResult
fn clone(&self) -> ParseResult
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 ParseResult
impl RefUnwindSafe for ParseResult
impl Send for ParseResult
impl Sync for ParseResult
impl Unpin for ParseResult
impl UnsafeUnpin for ParseResult
impl UnwindSafe for ParseResult
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