Trait async_graphql::OutputType[][src]

pub trait OutputType: Type + Send + Sync {
#[must_use]    fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        ctx: &'life1 ContextSelectionSet<'life2>,
        field: &'life3 Positioned<Field>
    ) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        'life3: 'async_trait,
        Self: 'async_trait
; }

Represents a GraphQL output value.

Required methods

#[must_use]fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 self,
    ctx: &'life1 ContextSelectionSet<'life2>,
    field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 
[src]

Resolve an output value to async_graphql::Value.

Loading content...

Implementations on Foreign Types

impl<'impl0, T: OutputType + ?Sized> OutputType for &'impl0 T[src]

impl<T: OutputType + ?Sized> OutputType for Box<T>[src]

impl<T: OutputType + ?Sized> OutputType for Arc<T>[src]

impl OutputType for bool[src]

impl OutputType for char[src]

impl<'a, T: ?Sized> OutputType for Cow<'a, T> where
    T: OutputType + ToOwned,
    <T as ToOwned>::Owned: Send + Sync
[src]

impl OutputType for f32[src]

impl OutputType for f64[src]

impl OutputType for i8[src]

impl OutputType for i16[src]

impl OutputType for i32[src]

impl OutputType for i64[src]

impl OutputType for u8[src]

impl OutputType for u16[src]

impl OutputType for u32[src]

impl OutputType for u64[src]

impl OutputType for usize[src]

impl OutputType for isize[src]

impl<T> OutputType for BTreeMap<String, T> where
    T: OutputType + InputType
[src]

impl<T> OutputType for HashMap<String, T> where
    T: OutputType + InputType
[src]

impl<T: OutputType + Ord> OutputType for BTreeSet<T>[src]

impl<T: OutputType + Hash + Eq> OutputType for HashSet<T>[src]

impl<T: OutputType> OutputType for LinkedList<T>[src]

impl<'impl0, T: OutputType> OutputType for &'impl0 [T][src]

impl<T: OutputType> OutputType for Vec<T>[src]

impl<T: OutputType> OutputType for VecDeque<T>[src]

impl OutputType for NonZeroI8[src]

impl OutputType for NonZeroI16[src]

impl OutputType for NonZeroI32[src]

impl OutputType for NonZeroI64[src]

impl OutputType for NonZeroU8[src]

impl OutputType for NonZeroU16[src]

impl OutputType for NonZeroU32[src]

impl OutputType for NonZeroU64[src]

impl<T: OutputType + Sync> OutputType for Option<T>[src]

impl OutputType for String[src]

impl OutputType for str[src]

impl OutputType for ObjectId[src]

impl OutputType for UtcDateTime[src]

impl OutputType for Tz[src]

impl OutputType for DateTime<FixedOffset>[src]

impl OutputType for DateTime<Local>[src]

impl OutputType for DateTime<Utc>[src]

impl OutputType for NaiveDate[src]

impl OutputType for NaiveTime[src]

impl OutputType for NaiveDateTime[src]

impl OutputType for Url[src]

impl OutputType for Uuid[src]

Loading content...

Implementors

impl OutputType for EmptyFields[src]

impl OutputType for PageInfo[src]

impl OutputType for Any[src]

impl OutputType for EmptyMutation[src]

impl OutputType for ID[src]

impl<C, T, E> OutputType for Edge<C, T, E> where
    C: CursorType + Send + Sync,
    T: OutputType,
    E: ObjectType
[src]

impl<C, T, EC, EE> OutputType for Connection<C, T, EC, EE> where
    C: CursorType + Send + Sync,
    T: OutputType,
    EC: ObjectType,
    EE: ObjectType
[src]

impl<T: OutputType + Sync> OutputType for Result<T>[src]

impl<T: Num + Display + Send + Sync> OutputType for StringNumber<T> where
    <T as Num>::FromStrRadixErr: Display
[src]

impl<T: DeserializeOwned + Serialize + Send + Sync> OutputType for Json<T>[src]

impl<T: Serialize + Send + Sync> OutputType for OutputJson<T>[src]

Loading content...