Struct graphql_tools::static_graphql::schema::ObjectType
source · [−]pub struct ObjectType<'a, T> where
T: Text<'a>, {
pub position: Pos,
pub description: Option<String>,
pub name: <T as Text<'a>>::Value,
pub implements_interfaces: Vec<<T as Text<'a>>::Value, Global>,
pub directives: Vec<Directive<'a, T>, Global>,
pub fields: Vec<Field<'a, T>, Global>,
}
Fields
position: Pos
description: Option<String>
name: <T as Text<'a>>::Value
implements_interfaces: Vec<<T as Text<'a>>::Value, Global>
directives: Vec<Directive<'a, T>, Global>
fields: Vec<Field<'a, T>, Global>
Implementations
sourceimpl<'a, T> ObjectType<'a, T> where
T: Text<'a>,
impl<'a, T> ObjectType<'a, T> where
T: Text<'a>,
pub fn new(name: <T as Text<'a>>::Value) -> ObjectType<'a, T>
Trait Implementations
sourceimpl<'a, T> Clone for ObjectType<'a, T> where
T: Clone + Text<'a>,
<T as Text<'a>>::Value: Clone,
impl<'a, T> Clone for ObjectType<'a, T> where
T: Clone + Text<'a>,
<T as Text<'a>>::Value: Clone,
sourcefn clone(&self) -> ObjectType<'a, T>
fn clone(&self) -> ObjectType<'a, T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, T> Debug for ObjectType<'a, T> where
T: Debug + Text<'a>,
<T as Text<'a>>::Value: Debug,
impl<'a, T> Debug for ObjectType<'a, T> where
T: Debug + Text<'a>,
<T as Text<'a>>::Value: Debug,
sourceimpl<'a, T> Display for ObjectType<'a, T> where
T: Text<'a>,
impl<'a, T> Display for ObjectType<'a, T> where
T: Text<'a>,
sourceimpl<'a, T> PartialEq<ObjectType<'a, T>> for ObjectType<'a, T> where
T: PartialEq<T> + Text<'a>,
<T as Text<'a>>::Value: PartialEq<<T as Text<'a>>::Value>,
impl<'a, T> PartialEq<ObjectType<'a, T>> for ObjectType<'a, T> where
T: PartialEq<T> + Text<'a>,
<T as Text<'a>>::Value: PartialEq<<T as Text<'a>>::Value>,
sourcefn eq(&self, other: &ObjectType<'a, T>) -> bool
fn eq(&self, other: &ObjectType<'a, T>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ObjectType<'a, T>) -> bool
fn ne(&self, other: &ObjectType<'a, T>) -> bool
This method tests for !=
.
impl<'a, T> StructuralPartialEq for ObjectType<'a, T> where
T: Text<'a>,
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for ObjectType<'a, T> where
<T as Text<'a>>::Value: RefUnwindSafe,
impl<'a, T> Send for ObjectType<'a, T> where
<T as Text<'a>>::Value: Send,
impl<'a, T> Sync for ObjectType<'a, T> where
<T as Text<'a>>::Value: Sync,
impl<'a, T> Unpin for ObjectType<'a, T> where
<T as Text<'a>>::Value: Unpin,
impl<'a, T> UnwindSafe for ObjectType<'a, T> where
<T as Text<'a>>::Value: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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