pub struct GraphQLArgument {
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 a GraphQL field argument
Fields§
§name: StringArgument name
type_name: StringArgument type name
is_nullable: boolWhether argument is nullable
is_list: boolWhether argument 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 (e.g., “10”, “"default"”)
description: Option<String>Argument description
Trait Implementations§
Source§impl Clone for GraphQLArgument
impl Clone for GraphQLArgument
Source§fn clone(&self) -> GraphQLArgument
fn clone(&self) -> GraphQLArgument
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 GraphQLArgument
impl Debug for GraphQLArgument
Source§impl<'de> Deserialize<'de> for GraphQLArgument
impl<'de> Deserialize<'de> for GraphQLArgument
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 GraphQLArgument
impl RefUnwindSafe for GraphQLArgument
impl Send for GraphQLArgument
impl Sync for GraphQLArgument
impl Unpin for GraphQLArgument
impl UnsafeUnpin for GraphQLArgument
impl UnwindSafe for GraphQLArgument
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