InputType

Enum InputType 

Source
pub enum InputType<'a, S: SchemaDefinition + 'a, W: Warden<SchemaDefinition = S> + 'a> {
    Base(BaseInputTypeReference<'a, Self>, bool),
    List(Box<Self>, bool),
}

Variants§

§

Base(BaseInputTypeReference<'a, Self>, bool)

§

List(Box<Self>, bool)

Implementations§

Source§

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

Source

pub fn new(inner: &'a S::InputType, cache: &'a Cache<'a, S, W>) -> Option<Self>

Trait Implementations§

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn as_ref<'b, S2: SchemaDefinition<CustomScalarTypeDefinition = Self::CustomScalarTypeDefinition, InputObjectTypeDefinition = Self::InputObjectTypeDefinition, EnumTypeDefinition = Self::EnumTypeDefinition>>( &'b self, _: &'b S2, ) -> InputTypeReference<'b, Self>

Source§

fn as_shallow_ref(&self) -> ShallowInputTypeReference<'_, Self>

Source§

fn display_name(&self) -> String

Source§

fn is_required(&self) -> bool

Source§

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