Struct apollo_compiler::Diagnostic
source · pub struct Diagnostic<'a> { /* private fields */ }
Implementations§
source§impl<'a> Diagnostic<'a>
impl<'a> Diagnostic<'a>
sourcepub fn get_line_column(&self) -> Option<GraphQLLocation>
pub fn get_line_column(&self) -> Option<GraphQLLocation>
Get the line and column number where this diagnostic was raised.
sourcepub fn to_json(&self) -> GraphQLError
pub fn to_json(&self) -> GraphQLError
Get serde_json serialisable version of the current diagnostic.
pub fn message(&self) -> &impl Display
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Diagnostic<'a>
impl<'a> Send for Diagnostic<'a>
impl<'a> Sync for Diagnostic<'a>
impl<'a> Unpin for Diagnostic<'a>
impl<'a> UnwindSafe for Diagnostic<'a>
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