SchemaDefinition

Struct SchemaDefinition 

Source
pub struct SchemaDefinition<'a, S: SchemaDefinition, W: Warden<SchemaDefinition = S>> { /* private fields */ }

Implementations§

Source§

impl<'a, S: SchemaDefinition, W: Warden<SchemaDefinition = S>> SchemaDefinition<'a, S, W>

Source

pub fn new( cache: &'a Cache<'a, S, W>, ) -> Result<Self, SchemaDefinitionError<'a>>

Source

pub fn inner(&self) -> &'a S

Source

pub fn cache(&self) -> &'a Cache<'a, S, W>

Trait Implementations§

Source§

impl<'a, S: SchemaDefinition + 'a, W: Warden<SchemaDefinition = S>> HasDirectives for SchemaDefinition<'a, S, W>

Source§

impl<'a, S: SchemaDefinition + 'a, W: Warden<SchemaDefinition = S>> SchemaDefinition for SchemaDefinition<'a, S, W>

Source§

type Directive = Directive<'a, S, W>

Source§

type Directives = Directives<'a, S, W>

Source§

type InputValueDefinition = InputValueDefinition<'a, S, W>

Source§

type InputFieldsDefinition = InputFieldsDefinition<'a, S, W>

Source§

type ArgumentsDefinition = ArgumentsDefinition<'a, S, W>

Source§

type EnumValueDefinition = EnumValueDefinition<'a, S, W>

Source§

type EnumValueDefinitions = EnumValueDefinitions<'a, S, W>

Source§

type FieldDefinition = FieldDefinition<'a, S, W>

Source§

type FieldsDefinition = FieldsDefinition<'a, S, W>

Source§

type InterfaceImplementation = InterfaceImplementation<'a, S, W>

Source§

type InterfaceImplementations = InterfaceImplementations<'a, S, W>

Source§

type UnionMemberType = UnionMemberType<'a, S, W>

Source§

type UnionMemberTypes = UnionMemberTypes<'a, S, W>

Source§

type InputType = InputType<'a, S, W>

Source§

type OutputType = OutputType<'a, S, W>

Source§

type CustomScalarTypeDefinition = ScalarTypeDefinition<'a, S, W>

Source§

type ObjectTypeDefinition = ObjectTypeDefinition<'a, S, W>

Source§

type InterfaceTypeDefinition = InterfaceTypeDefinition<'a, S, W>

Source§

type UnionTypeDefinition = UnionTypeDefinition<'a, S, W>

Source§

type InputObjectTypeDefinition = InputObjectTypeDefinition<'a, S, W>

Source§

type EnumTypeDefinition = EnumTypeDefinition<'a, S, W>

Source§

type TypeDefinition = TypeDefinition<'a, S, W>

Source§

type DirectiveDefinition = DirectiveDefinition<'a, S, W>

Source§

type TypeDefinitions<'b> = Copied<Values<'b, &'a str, TypeDefinitionReference<'b, <SchemaDefinition<'a, S, W> as SchemaDefinition>::TypeDefinition>>> where 'a: 'b

Source§

type DirectiveDefinitions<'b> = Copied<Values<'b, &'a str, &'b <SchemaDefinition<'a, S, W> as SchemaDefinition>::DirectiveDefinition>> where 'a: 'b

Source§

type InterfaceImplementors<'b> = Copied<Iter<'b, &'b <SchemaDefinition<'a, S, W> as SchemaDefinition>::ObjectTypeDefinition>> 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 type_definitions(&self) -> Self::TypeDefinitions<'_>

Source§

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

Source§

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

Source§

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

Source§

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

Auto Trait Implementations§

§

impl<'a, S, W> !Freeze for SchemaDefinition<'a, S, W>

§

impl<'a, S, W> !RefUnwindSafe for SchemaDefinition<'a, S, W>

§

impl<'a, S, W> !Send for SchemaDefinition<'a, S, W>

§

impl<'a, S, W> !Sync for SchemaDefinition<'a, S, W>

§

impl<'a, S, W> Unpin for SchemaDefinition<'a, S, W>

§

impl<'a, S, W> !UnwindSafe for SchemaDefinition<'a, S, W>

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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

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

Source§

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>,

Source§

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.