pub enum BaseType {
Named(Name),
List(Box<Type>),
}
Expand description
A GraphQL base type, for example String
or [String!]
. This does not
include whether the type is nullable; for that see Type.
Variants§
Trait Implementations§
Source§impl AstPositionExt for BaseType
impl AstPositionExt for BaseType
Source§fn default_position(self) -> Positioned<Self>
fn default_position(self) -> Positioned<Self>
Create a positioned version of this AST node with the default position (0:0).
Source§fn with_position(self, pos: Pos) -> Positioned<Self>
fn with_position(self, pos: Pos) -> Positioned<Self>
Create a positioned version of this AST node with the given position.
Source§impl<'de> Deserialize<'de> for BaseType
impl<'de> Deserialize<'de> for BaseType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BaseType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BaseType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BaseType
impl Serialize for BaseType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for BaseType
impl StructuralPartialEq for BaseType
Auto Trait Implementations§
impl Freeze for BaseType
impl RefUnwindSafe for BaseType
impl Send for BaseType
impl Sync for BaseType
impl Unpin for BaseType
impl UnwindSafe for BaseType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.