Struct async_graphql::types::OutputJson [−][src]
pub struct OutputJson<T>(pub T);
Expand description
A Json type that only implements OutputType.
Trait Implementations
Returns the “default value” for a type. Read more
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,
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, Resolve an output value to async_graphql::Value.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Create type information in the registry and return qualified typename.
Qualified typename.
Introspection type name Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for OutputJson<T> where
T: RefUnwindSafe, impl<T> Send for OutputJson<T> where
T: Send, impl<T> Sync for OutputJson<T> where
T: Sync, impl<T> Unpin for OutputJson<T> where
T: Unpin, impl<T> UnwindSafe for OutputJson<T> where
T: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash, Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> VAttaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more