Struct gql_client::GraphQLError
source · [−]pub struct GraphQLError { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for GraphQLError
impl Clone for GraphQLError
sourcefn clone(&self) -> GraphQLError
fn clone(&self) -> GraphQLError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for GraphQLError
impl Debug for GraphQLError
sourceimpl Display for GraphQLError
impl Display for GraphQLError
Auto Trait Implementations
impl RefUnwindSafe for GraphQLError
impl Send for GraphQLError
impl Sync for GraphQLError
impl Unpin for GraphQLError
impl UnwindSafe for GraphQLError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more