Struct async_graphql::Error [−][src]
pub struct Error {
pub message: String,
pub extensions: Option<ErrorExtensionValues>,
}Expand description
An error with a message and optional extensions.
Fields
message: StringThe error message.
extensions: Option<ErrorExtensionValues>Extensions to the error.
Implementations
Convert the error to a server error.
Trait Implementations
Add extensions to the error, using a callback to make the extensions.
Auto Trait Implementations
impl RefUnwindSafe for Errorimpl UnwindSafe for ErrorBlanket 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