pub struct GraphQLError { /* private fields */ }Implementations§
Source§impl GraphQLError
impl GraphQLError
pub fn with_text(message: impl AsRef<str>) -> Self
pub fn with_message_and_json( message: impl AsRef<str>, json: Vec<GraphQLErrorMessage>, ) -> Self
pub fn with_json(json: Vec<GraphQLErrorMessage>) -> Self
pub fn message(&self) -> &str
pub fn json(&self) -> Option<Vec<GraphQLErrorMessage>>
Trait Implementations§
Source§impl Clone for GraphQLError
impl Clone for GraphQLError
Source§fn clone(&self) -> GraphQLError
fn clone(&self) -> GraphQLError
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 moreSource§impl Debug for GraphQLError
impl Debug for GraphQLError
Source§impl Display for GraphQLError
impl Display for GraphQLError
Auto Trait Implementations§
impl Freeze for GraphQLError
impl RefUnwindSafe for GraphQLError
impl Send for GraphQLError
impl Sync for GraphQLError
impl Unpin for GraphQLError
impl UnsafeUnpin for GraphQLError
impl UnwindSafe for GraphQLError
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