pub enum InputType<'a, S: SchemaDefinition + 'a, W: Warden<SchemaDefinition = S> + 'a> {
Base(BaseInputTypeReference<'a, Self>, bool),
List(Box<Self>, bool),
}Variants§
Implementations§
Trait Implementations§
Source§impl<'a, S: SchemaDefinition + 'a, W: Warden<SchemaDefinition = S>> InputType for InputType<'a, S, W>
impl<'a, S: SchemaDefinition + 'a, W: Warden<SchemaDefinition = S>> InputType for InputType<'a, S, W>
type CustomScalarTypeDefinition = ScalarTypeDefinition<'a, S, W>
type EnumTypeDefinition = EnumTypeDefinition<'a, S, W>
type InputObjectTypeDefinition = InputObjectTypeDefinition<'a, S, W>
fn as_ref<'b, S2: SchemaDefinition<CustomScalarTypeDefinition = Self::CustomScalarTypeDefinition, InputObjectTypeDefinition = Self::InputObjectTypeDefinition, EnumTypeDefinition = Self::EnumTypeDefinition>>( &'b self, _: &'b S2, ) -> InputTypeReference<'b, Self>
fn as_shallow_ref(&self) -> ShallowInputTypeReference<'_, Self>
fn display_name(&self) -> String
fn is_required(&self) -> bool
fn base<'a, S>(
&'a self,
schema_definition: &'a S,
) -> BaseInputTypeReference<'a, Self>where
S: SchemaDefinition<CustomScalarTypeDefinition = Self::CustomScalarTypeDefinition, InputObjectTypeDefinition = Self::InputObjectTypeDefinition, EnumTypeDefinition = Self::EnumTypeDefinition>,
Auto Trait Implementations§
impl<'a, S, W> Freeze for InputType<'a, S, W>
impl<'a, S, W> !RefUnwindSafe for InputType<'a, S, W>
impl<'a, S, W> !Send for InputType<'a, S, W>
impl<'a, S, W> !Sync for InputType<'a, S, W>
impl<'a, S, W> Unpin for InputType<'a, S, W>
impl<'a, S, W> !UnwindSafe for InputType<'a, S, W>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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