pub struct GraphQLInputField {
pub name: String,
pub type_name: String,
pub is_nullable: bool,
pub is_list: bool,
pub list_item_nullable: bool,
pub default_value: Option<String>,
pub description: Option<String>,
}Expand description
Represents an input field (for InputObject types)
Fields§
§name: StringField name
type_name: StringField type name
is_nullable: boolWhether field is nullable
is_list: boolWhether field type is a list
list_item_nullable: boolWhether list items are nullable (only meaningful if is_list is true)
default_value: Option<String>Default value as string
description: Option<String>Field description
Trait Implementations§
Source§impl Clone for GraphQLInputField
impl Clone for GraphQLInputField
Source§fn clone(&self) -> GraphQLInputField
fn clone(&self) -> GraphQLInputField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GraphQLInputField
impl Debug for GraphQLInputField
Source§impl<'de> Deserialize<'de> for GraphQLInputField
impl<'de> Deserialize<'de> for GraphQLInputField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GraphQLInputField
impl RefUnwindSafe for GraphQLInputField
impl Send for GraphQLInputField
impl Sync for GraphQLInputField
impl Unpin for GraphQLInputField
impl UnsafeUnpin for GraphQLInputField
impl UnwindSafe for GraphQLInputField
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