pub struct SchemaDefinition<'a>(/* private fields */);
Implementations§
source§impl<'a> SchemaDefinition<'a>
impl<'a> SchemaDefinition<'a>
pub fn description(&self) -> Option<Description<'a>>
pub fn directives(&self) -> Iter<'a, Directive<'a>> ⓘ
pub fn root_operations(&self) -> Iter<'a, RootOperationTypeDefinition<'a>> ⓘ
pub fn span(&self) -> Span
source§impl SchemaDefinition<'_>
impl SchemaDefinition<'_>
pub fn id(&self) -> SchemaDefinitionId
source§impl<'a> SchemaDefinition<'a>
impl<'a> SchemaDefinition<'a>
pub fn query_type(&self) -> Option<RootOperationTypeDefinition<'a>>
pub fn mutation_type(&self) -> Option<RootOperationTypeDefinition<'a>>
pub fn subscription_type(&self) -> Option<RootOperationTypeDefinition<'a>>
Trait Implementations§
source§impl<'a> Clone for SchemaDefinition<'a>
impl<'a> Clone for SchemaDefinition<'a>
source§fn clone(&self) -> SchemaDefinition<'a>
fn clone(&self) -> SchemaDefinition<'a>
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 SchemaDefinition<'_>
impl Debug for SchemaDefinition<'_>
source§impl IdReader for SchemaDefinition<'_>
impl IdReader for SchemaDefinition<'_>
type Id = SchemaDefinitionId
impl<'a> Copy for SchemaDefinition<'a>
Auto Trait Implementations§
impl<'a> Freeze for SchemaDefinition<'a>
impl<'a> RefUnwindSafe for SchemaDefinition<'a>
impl<'a> Send for SchemaDefinition<'a>
impl<'a> Sync for SchemaDefinition<'a>
impl<'a> Unpin for SchemaDefinition<'a>
impl<'a> UnwindSafe for SchemaDefinition<'a>
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)