Struct async_graphql::dynamic::TypeRef
source · pub struct TypeRef(_);
Available on crate feature
dynamic-schema
only.Expand description
A type reference
Implementations§
source§impl TypeRef
impl TypeRef
sourcepub fn named(type_name: impl Into<String>) -> TypeRef
pub fn named(type_name: impl Into<String>) -> TypeRef
Returns the nullable type reference
GraphQL Type: T
sourcepub fn named_nn(type_name: impl Into<String>) -> TypeRef
pub fn named_nn(type_name: impl Into<String>) -> TypeRef
Returns the non-null type reference
GraphQL Type: T!
sourcepub fn named_list(type_name: impl Into<String>) -> TypeRef
pub fn named_list(type_name: impl Into<String>) -> TypeRef
Returns a nullable list of nullable members type reference
GraphQL Type: [T]
sourcepub fn named_nn_list(type_name: impl Into<String>) -> TypeRef
pub fn named_nn_list(type_name: impl Into<String>) -> TypeRef
Returns a nullable list of non-null members type reference
GraphQL Type: [T!]
sourcepub fn named_list_nn(type_name: impl Into<String>) -> TypeRef
pub fn named_list_nn(type_name: impl Into<String>) -> TypeRef
Returns a non-null list of nullable members type reference
GraphQL Type: [T]!
sourcepub fn named_nn_list_nn(type_name: impl Into<String>) -> TypeRef
pub fn named_nn_list_nn(type_name: impl Into<String>) -> TypeRef
Returns a non-null list of non-null members type reference
GraphQL Type: [T!]!
Trait Implementations§
impl Eq for TypeRef
impl StructuralEq for TypeRef
impl StructuralPartialEq for TypeRef
Auto Trait Implementations§
impl RefUnwindSafe for TypeRef
impl Send for TypeRef
impl Sync for TypeRef
impl Unpin for TypeRef
impl UnwindSafe for TypeRef
Blanket Implementations§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.