NullWarden

Struct NullWarden 

Source
pub struct NullWarden<S: SchemaDefinition>(/* private fields */);

Trait Implementations§

Source§

impl<S: SchemaDefinition> Default for NullWarden<S>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<S: SchemaDefinition> Warden for NullWarden<S>

Source§

type SchemaDefinition = S

Source§

type TypeDefinitionsForName<'a> = IntoIter<TypeDefinitionReference<'a, <S as SchemaDefinition>::TypeDefinition>> where Self: 'a

Source§

fn is_field_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::FieldDefinition, ) -> bool

Source§

fn is_input_value_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::InputValueDefinition, ) -> bool

Source§

fn is_enum_value_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::EnumValueDefinition, ) -> bool

Source§

fn is_union_member_type_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::UnionMemberType, ) -> bool

Source§

fn is_interface_implementation_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::InterfaceImplementation, ) -> bool

Source§

fn is_directive_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::DirectiveDefinition, ) -> bool

Source§

fn is_custom_scalar_type_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::CustomScalarTypeDefinition, ) -> bool

Source§

fn is_enum_type_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::EnumTypeDefinition, ) -> bool

Source§

fn is_input_object_type_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::InputObjectTypeDefinition, ) -> bool

Source§

fn is_interface_type_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::InterfaceTypeDefinition, ) -> bool

Source§

fn is_object_type_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::ObjectTypeDefinition, ) -> bool

Source§

fn is_union_type_definition_visible( &self, _: &<Self::SchemaDefinition as SchemaDefinition>::UnionTypeDefinition, ) -> bool

Source§

fn type_definitions_for_name<'a>( &self, schema_definition: &'a Self::SchemaDefinition, type_name: &str, ) -> Self::TypeDefinitionsForName<'a>

Source§

fn input_value_definition_default_value<'a>( &self, scoped_input_value_definition: &InputValueDefinition<'a, Self::SchemaDefinition, Self>, ) -> Option<&'a <<Self::SchemaDefinition as SchemaDefinition>::InputValueDefinition as InputValueDefinition>::Value>

Source§

fn directive_arguments<'a>( &self, scoped_directive: &Directive<'a, Self::SchemaDefinition, Self>, ) -> Option<&'a <<Self::SchemaDefinition as SchemaDefinition>::Directive as Directive<true>>::Arguments>

Source§

fn custom_scalar_definition_coerce_input<const CONST: bool>( &self, custom_scalar_type_definition: &<Self::SchemaDefinition as SchemaDefinition>::CustomScalarTypeDefinition, value: &impl Value<CONST>, ) -> Result<(), Cow<'static, str>>

Source§

fn object_type_definitions_equal( &self, first: &<Self::SchemaDefinition as SchemaDefinition>::ObjectTypeDefinition, second: &<Self::SchemaDefinition as SchemaDefinition>::ObjectTypeDefinition, ) -> bool

Source§

fn scalar_type_definitions_equal( &self, first: &<Self::SchemaDefinition as SchemaDefinition>::CustomScalarTypeDefinition, second: &<Self::SchemaDefinition as SchemaDefinition>::CustomScalarTypeDefinition, ) -> bool

Source§

fn enum_type_definitions_equal( &self, first: &<Self::SchemaDefinition as SchemaDefinition>::EnumTypeDefinition, second: &<Self::SchemaDefinition as SchemaDefinition>::EnumTypeDefinition, ) -> bool

Source§

fn input_object_type_definitions_equal( &self, first: &<Self::SchemaDefinition as SchemaDefinition>::InputObjectTypeDefinition, second: &<Self::SchemaDefinition as SchemaDefinition>::InputObjectTypeDefinition, ) -> bool

Source§

fn interface_type_definitions_equal( &self, first: &<Self::SchemaDefinition as SchemaDefinition>::InterfaceTypeDefinition, second: &<Self::SchemaDefinition as SchemaDefinition>::InterfaceTypeDefinition, ) -> bool

Source§

fn union_type_definitions_equal( &self, first: &<Self::SchemaDefinition as SchemaDefinition>::UnionTypeDefinition, second: &<Self::SchemaDefinition as SchemaDefinition>::UnionTypeDefinition, ) -> bool

Auto Trait Implementations§

§

impl<S> Freeze for NullWarden<S>

§

impl<S> RefUnwindSafe for NullWarden<S>
where S: RefUnwindSafe,

§

impl<S> Send for NullWarden<S>
where S: Send,

§

impl<S> Sync for NullWarden<S>
where S: Sync,

§

impl<S> Unpin for NullWarden<S>
where S: Unpin,

§

impl<S> UnwindSafe for NullWarden<S>
where S: UnwindSafe,

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.