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
fn into(self) -> FieldResult<T>
Wrap self
in a Result
The implementation of this should always be Ok(self)
.
Implementors
impl IntoFieldResult<ID> for ID
impl IntoFieldResult<String> for String
impl<'a> IntoFieldResult<&'a str> for &'a str
impl IntoFieldResult<bool> for bool
impl IntoFieldResult<i64> for i64
impl IntoFieldResult<f64> for f64
impl IntoFieldResult<()> for ()
impl<T> IntoFieldResult<Box<T>> for Box<T>
impl<'a, T> IntoFieldResult<&'a T> for &'a T
impl<T> IntoFieldResult<Option<T>> for Option<T>
impl<T> IntoFieldResult<Vec<T>> for Vec<T>
impl<'a, T> IntoFieldResult<&'a [T]> for &'a [T]
impl IntoFieldResult<Field> for Field
impl IntoFieldResult<Argument> for Argument
impl IntoFieldResult<EnumValue> for EnumValue
impl IntoFieldResult<TypeKind> for TypeKind
impl<T> IntoFieldResult<T> for FieldResult<T>