#[non_exhaustive]pub struct FieldType {
pub wrapping: FieldWrapping,
pub name: String,
}Expand description
The type of a Field or InputValue
Provides a std::fmt::Display impl that can be used to get the GraphQL string representation of this FieldType.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.wrapping: FieldWrappingThe “wrapping types” for a field - whether it is wrapped in NonNull or a List
name: StringThe named type contained within any FieldWrapping
Trait Implementations§
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Freeze for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnwindSafe for FieldType
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