Struct cynic_introspection::ObjectType
source · pub struct ObjectType {
pub name: String,
pub description: Option<String>,
pub fields: Vec<Field>,
pub interfaces: Vec<String>,
}Expand description
GraphQL Objects represent a list of named fields, each of which yield a value of a specific type.
Fields§
§name: StringThe name of the object
description: Option<String>A description of the object
fields: Vec<Field>The fields of the object
interfaces: Vec<String>Any interfaces this object implements
Trait Implementations§
source§impl Clone for ObjectType
impl Clone for ObjectType
source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ObjectType
impl Debug for ObjectType
source§impl PartialEq for ObjectType
impl PartialEq for ObjectType
source§fn eq(&self, other: &ObjectType) -> bool
fn eq(&self, other: &ObjectType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ObjectType
impl StructuralEq for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnwindSafe for ObjectType
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