[][src]Trait async_graphql::OutputValueType

pub trait OutputValueType: Type {
#[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 = Result<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 = Result<Value>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    'life3: 'async_trait,
    Self: 'async_trait, 

Resolve an output value to serde_json::Value.

Loading content...

Implementations on Foreign Types

impl<'impl0, T: OutputValueType + Send + Sync> OutputValueType for &'impl0 T[src]

impl OutputValueType for bool[src]

impl OutputValueType for char[src]

impl OutputValueType for f32[src]

impl OutputValueType for f64[src]

impl OutputValueType for i8[src]

impl OutputValueType for i16[src]

impl OutputValueType for i32[src]

impl OutputValueType for i64[src]

impl OutputValueType for u8[src]

impl OutputValueType for u16[src]

impl OutputValueType for u32[src]

impl OutputValueType for u64[src]

impl<T> OutputValueType for BTreeMap<String, T> where
    T: OutputValueType + InputValueType + Send + Sync
[src]

impl<T> OutputValueType for HashMap<String, T> where
    T: OutputValueType + InputValueType + Send + Sync
[src]

impl<T: OutputValueType + Send + Sync + Ord> OutputValueType for BTreeSet<T>[src]

impl<T: OutputValueType + Send + Sync + Hash + Eq> OutputValueType for HashSet<T>[src]

impl<T: OutputValueType + Send + Sync> OutputValueType for LinkedList<T>[src]

impl<'impl0, T: OutputValueType + Send + Sync> OutputValueType for &'impl0 [T][src]

impl<T: OutputValueType + Send + Sync> OutputValueType for Vec<T>[src]

impl<T: OutputValueType + Send + Sync> OutputValueType for VecDeque<T>[src]

impl OutputValueType for NonZeroI8[src]

impl OutputValueType for NonZeroI16[src]

impl OutputValueType for NonZeroI32[src]

impl OutputValueType for NonZeroI64[src]

impl OutputValueType for NonZeroU8[src]

impl OutputValueType for NonZeroU16[src]

impl OutputValueType for NonZeroU32[src]

impl OutputValueType for NonZeroU64[src]

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

impl OutputValueType for String[src]

impl<'a> OutputValueType for &'a str[src]

impl OutputValueType for ObjectId[src]

impl OutputValueType for UtcDateTime[src]

impl OutputValueType for DateTime<FixedOffset>[src]

impl OutputValueType for DateTime<Local>[src]

impl OutputValueType for DateTime<Utc>[src]

impl OutputValueType for NaiveDate[src]

impl OutputValueType for NaiveTime[src]

impl OutputValueType for NaiveDateTime[src]

impl OutputValueType for Url[src]

impl OutputValueType for Uuid[src]

Loading content...

Implementors

impl OutputValueType for EmptyFields[src]

impl OutputValueType for PageInfo[src]

impl OutputValueType for Any[src]

impl OutputValueType for EmptyMutation[src]

impl OutputValueType for ID[src]

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

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

impl<T: OutputValueType + Sync> OutputValueType for FieldResult<T>[src]

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

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

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

Loading content...