Struct harmonizer::CompositionErrorExtensions[][src]

pub struct CompositionErrorExtensions {
    pub code: String,
}

Mimicking the JavaScript-world from which this error comes, this represents the extensions property of a JavaScript GraphQLError from the [graphql-js] library. Such errors are created when errors have prevented successful composition, which is accomplished using errorWithCode. An example of this can be seen within the federation-js JavaScript library.

Fields

code: String

An Apollo Federation composition error code.

A non-exhaustive list of error codes that this includes, is:

  • EXTERNAL_TYPE_MISMATCH
  • EXTERNAL_UNUSED
  • KEY_FIELDS_MISSING_ON_BASE
  • KEY_MISSING_ON_BASE
  • KEY_NOT_SPECIFIED
  • PROVIDES_FIELDS_MISSING_EXTERNAL

…and many more! See the federation-js composition library for more details (and search for errorWithCode).

Trait Implementations

impl Debug for CompositionErrorExtensions[src]

impl<'de> Deserialize<'de> for CompositionErrorExtensions[src]

impl PartialEq<CompositionErrorExtensions> for CompositionErrorExtensions[src]

impl Serialize for CompositionErrorExtensions[src]

impl StructuralPartialEq for CompositionErrorExtensions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.