Struct router_bridge::planner::PlanError
source · pub struct PlanError {
pub message: Option<String>,
pub extensions: Option<PlanErrorExtensions>,
pub validation_error: bool,
}Expand description
An error which occurred during JavaScript planning.
The shape of this error is meant to mimic that of the error created within
JavaScript, which is a GraphQLError from the graphql-js library.
Fields§
§message: Option<String>A human-readable description of the error that prevented planning.
extensions: Option<PlanErrorExtensions>§validation_error: boolTrue if the error came from GraphQL validation. The router can use this to compare results between JS and Rust validation implementations.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PlanError
impl<'de> Deserialize<'de> for PlanError
source§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
source§impl Error for PlanError
impl Error for PlanError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl PartialEq for PlanError
impl PartialEq for PlanError
impl Eq for PlanError
impl StructuralEq for PlanError
impl StructuralPartialEq for PlanError
Auto Trait Implementations§
impl RefUnwindSafe for PlanError
impl Send for PlanError
impl Sync for PlanError
impl Unpin for PlanError
impl UnwindSafe for PlanError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.