pub enum GraphqlExtractionError {
InvalidGraphql {
source_path: String,
message: String,
},
InvalidJson {
source_path: String,
line: u32,
message: String,
},
UnsupportedPersistedManifest {
source_path: String,
},
LimitExceeded(ExtractionLimitExceeded),
}Expand description
Error returned for invalid standalone GraphQL or persisted-operation JSON.
Variants§
InvalidGraphql
The standalone GraphQL document is syntactically invalid.
InvalidJson
The persisted-operation manifest is not valid JSON.
Fields
UnsupportedPersistedManifest
JSON was valid but did not contain a supported persisted-operation shape.
LimitExceeded(ExtractionLimitExceeded)
Extraction exceeded one configured invocation resource.
Trait Implementations§
Source§impl Clone for GraphqlExtractionError
impl Clone for GraphqlExtractionError
Source§fn clone(&self) -> GraphqlExtractionError
fn clone(&self) -> GraphqlExtractionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GraphqlExtractionError
impl Debug for GraphqlExtractionError
Source§impl<'de> Deserialize<'de> for GraphqlExtractionError
impl<'de> Deserialize<'de> for GraphqlExtractionError
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 Display for GraphqlExtractionError
impl Display for GraphqlExtractionError
impl Eq for GraphqlExtractionError
Source§impl Error for GraphqlExtractionError
impl Error for GraphqlExtractionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<ExtractionLimitExceeded> for GraphqlExtractionError
impl From<ExtractionLimitExceeded> for GraphqlExtractionError
Source§fn from(source: ExtractionLimitExceeded) -> Self
fn from(source: ExtractionLimitExceeded) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GraphqlExtractionError
impl PartialEq for GraphqlExtractionError
Source§impl Serialize for GraphqlExtractionError
impl Serialize for GraphqlExtractionError
impl StructuralPartialEq for GraphqlExtractionError
Auto Trait Implementations§
impl Freeze for GraphqlExtractionError
impl RefUnwindSafe for GraphqlExtractionError
impl Send for GraphqlExtractionError
impl Sync for GraphqlExtractionError
impl Unpin for GraphqlExtractionError
impl UnsafeUnpin for GraphqlExtractionError
impl UnwindSafe for GraphqlExtractionError
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.