Trait juniper::IntoFieldResult [] [src]

pub trait IntoFieldResult<T>: Sized {
    fn into(self) -> FieldResult<T>;
}

Convert a value into a successful field result

Used by the helper macros to support both returning a naked value and a FieldResult from a field.

Required Methods

Wrap self in a Result

The implementation of this should always be Ok(self).

Implementors