Struct bluejay_parser::ast::definition::SchemaDefinition

source ·
pub struct SchemaDefinition<'a, C: Context = DefaultContext> { /* private fields */ }

Trait Implementations§

source§

impl<'a, C: Debug + Context> Debug for SchemaDefinition<'a, C>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, C: Context> HasDirectives for SchemaDefinition<'a, C>

§

type Directives = Directives<'a, C>

source§

fn directives(&self) -> Option<&Self::Directives>

source§

impl<'a, C: Context> SchemaDefinition for SchemaDefinition<'a, C>

§

type Directive = Directive<'a, C>

§

type Directives = Directives<'a, C>

§

type InputValueDefinition = InputValueDefinition<'a, C>

§

type InputFieldsDefinition = InputFieldsDefinition<'a, C>

§

type ArgumentsDefinition = ArgumentsDefinition<'a, C>

§

type EnumValueDefinition = EnumValueDefinition<'a, C>

§

type EnumValueDefinitions = EnumValueDefinitions<'a, C>

§

type FieldDefinition = FieldDefinition<'a, C>

§

type FieldsDefinition = FieldsDefinition<'a, C>

§

type InterfaceImplementation = InterfaceImplementation<'a, C>

§

type InterfaceImplementations = InterfaceImplementations<'a, C>

§

type UnionMemberType = UnionMemberType<'a, C>

§

type UnionMemberTypes = UnionMemberTypes<'a, C>

§

type InputType = InputType<'a, C>

§

type OutputType = OutputType<'a, C>

§

type CustomScalarTypeDefinition = CustomScalarTypeDefinition<'a, C>

§

type ObjectTypeDefinition = ObjectTypeDefinition<'a, C>

§

type InterfaceTypeDefinition = InterfaceTypeDefinition<'a, C>

§

type UnionTypeDefinition = UnionTypeDefinition<'a, C>

§

type InputObjectTypeDefinition = InputObjectTypeDefinition<'a, C>

§

type EnumTypeDefinition = EnumTypeDefinition<'a, C>

§

type TypeDefinition = TypeDefinition<'a, C>

§

type DirectiveDefinition = DirectiveDefinition<'a, C>

§

type TypeDefinitions<'b> = Map<Values<'b, &'b str, &'b TypeDefinition<'a, C>>, fn(_: &&'b TypeDefinition<'a, C>) -> TypeDefinitionReference<'b, TypeDefinition<'a, C>>> where 'a: 'b

§

type DirectiveDefinitions<'b> = Copied<Values<'b, &'b str, &'b DirectiveDefinition<'a, C>>> where 'a: 'b

§

type InterfaceImplementors<'b> = Flatten<IntoIter<Copied<Iter<'b, &'b ObjectTypeDefinition<'a, C>>>>> where 'a: 'b

source§

fn description(&self) -> Option<&str>

source§

fn query(&self) -> &Self::ObjectTypeDefinition

source§

fn mutation(&self) -> Option<&Self::ObjectTypeDefinition>

source§

fn subscription(&self) -> Option<&Self::ObjectTypeDefinition>

source§

fn get_type_definition( &self, name: &str ) -> Option<TypeDefinitionReference<'_, Self::TypeDefinition>>

source§

fn type_definitions(&self) -> Self::TypeDefinitions<'_>

source§

fn get_directive_definition( &self, name: &str ) -> Option<&Self::DirectiveDefinition>

source§

fn directive_definitions(&self) -> Self::DirectiveDefinitions<'_>

source§

fn get_interface_implementors( &self, itd: &Self::InterfaceTypeDefinition ) -> Self::InterfaceImplementors<'_>

source§

impl<'a, C: Context> TryFrom<&'a DefinitionDocument<'a, C>> for SchemaDefinition<'a, C>

§

type Error = Vec<DefinitionDocumentError<'a, C>>

The type returned in the event of a conversion error.
source§

fn try_from( definition_document: &'a DefinitionDocument<'a, C> ) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a, C> Freeze for SchemaDefinition<'a, C>

§

impl<'a, C> RefUnwindSafe for SchemaDefinition<'a, C>
where C: RefUnwindSafe,

§

impl<'a, C> Send for SchemaDefinition<'a, C>
where C: Sync,

§

impl<'a, C> Sync for SchemaDefinition<'a, C>
where C: Sync,

§

impl<'a, C> Unpin for SchemaDefinition<'a, C>

§

impl<'a, C> UnwindSafe for SchemaDefinition<'a, C>
where C: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.