pub enum TypeRef {
Named(Cow<'static, str>),
NonNull(Box<TypeRef>),
List(Box<TypeRef>),
}Available on crate feature
dynamic-schema only.Expand description
A type reference
Variants§
Named(Cow<'static, str>)
Named type
NonNull(Box<TypeRef>)
Non-null type
List(Box<TypeRef>)
List type
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 StructuralPartialEq for TypeRef
Auto Trait Implementations§
impl Freeze for TypeRef
impl RefUnwindSafe for TypeRef
impl Send for TypeRef
impl Sync for TypeRef
impl Unpin for TypeRef
impl UnwindSafe for TypeRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compares
self with key and returns true if they are equal.