Struct async_graphql::types::Any  
source · [−]pub struct Any(pub Value);Expand description
Any scalar (For Apollo Federation)
The Any scalar is used to pass representations of entities from external
services into the root _entities field for execution.
Tuple Fields
0: ValueTrait Implementations
sourceimpl InputType for Any
 
impl InputType for Any
type RawValueType = Any
type RawValueType = Any
The raw type used for validator. Read more
sourcefn create_type_info(registry: &mut Registry) -> String
 
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn parse(value: Option<Value>) -> InputValueResult<Self>
 
fn parse(value: Option<Value>) -> InputValueResult<Self>
Parse from 
Value. None represents undefined.sourcefn as_raw_value(&self) -> Option<&Self::RawValueType>
 
fn as_raw_value(&self) -> Option<&Self::RawValueType>
Returns a reference to the raw value.
sourcefn qualified_type_name() -> String
 
fn qualified_type_name() -> String
Qualified typename.
sourceimpl OutputType for Any
 
impl OutputType for Any
sourcefn create_type_info(registry: &mut Registry) -> String
 
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
    &'life0 self,
    __arg1: &'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,
    __arg1: &'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.sourcefn qualified_type_name() -> String
 
fn qualified_type_name() -> String
Qualified typename.
sourcefn introspection_type_name(&self) -> Cow<'static, str>
 
fn introspection_type_name(&self) -> Cow<'static, str>
Introspection type name Read more
sourceimpl ScalarType for Any
 
impl ScalarType for Any
The _Any scalar is used to pass representations of entities from external
services into the root _entities field for execution.
impl Eq for Any
impl StructuralEq for Any
impl StructuralPartialEq for Any
Auto Trait Implementations
impl RefUnwindSafe for Any
impl Send for Any
impl Sync for Any
impl Unpin for Any
impl UnwindSafe for Any
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.