pub struct SchemaDefinition<'a>(/* private fields */);
Implementations§
Source§impl<'a> SchemaDefinition<'a>
impl<'a> SchemaDefinition<'a>
pub fn root_definition( &self, operation_type: OperationType, ) -> Option<RootOperationTypeDefinition<'a>>
pub fn root_query_definition(&self) -> Option<RootOperationTypeDefinition<'a>>
pub fn root_mutation_definition( &self, ) -> Option<RootOperationTypeDefinition<'a>>
pub fn root_subscription_definition( &self, ) -> Option<RootOperationTypeDefinition<'a>>
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
type Reader<'a> = SchemaDefinition<'a>
fn new(id: Self::Id, document: &TypeSystemDocument) -> Self::Reader<'_>
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