Struct harmonizer::CompositionError[][src]

pub struct CompositionError {
    pub message: Option<String>,
    pub extensions: Option<CompositionErrorExtensions>,
}

An error which occurred during JavaScript composition.

The shape of this error is meant to mimick 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 composition.

extensions: Option<CompositionErrorExtensions>

Implementations

impl CompositionError[src]

An error that was received during composition within JavaScript.

pub fn code(&self) -> &str[src]

Retrieve the error code from an error received during composition.

Trait Implementations

impl Debug for CompositionError[src]

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

impl Display for CompositionError[src]

impl Error for CompositionError[src]

impl PartialEq<CompositionError> for CompositionError[src]

impl Serialize for CompositionError[src]

impl StructuralPartialEq for CompositionError[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> ToString for T where
    T: Display + ?Sized
[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.