Struct async_graphql::ServerError [−][src]
pub struct ServerError {
pub message: String,
pub locations: Vec<Pos>,
pub path: Vec<PathSegment>,
pub extensions: Option<ErrorExtensionValues>,
}Expand description
An error in a GraphQL server.
Fields
message: StringAn explanatory message of the error.
locations: Vec<Pos>Where the error occurred.
path: Vec<PathSegment>If the error occurred in a resolver, the path to the error.
extensions: Option<ErrorExtensionValues>Extensions to the error.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ServerErrorimpl Send for ServerErrorimpl Sync for ServerErrorimpl Unpin for ServerErrorimpl UnwindSafe for ServerErrorBlanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> VAttaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more