Struct cynic_codegen::use_schema::FieldSelector [−][src]
pub struct FieldSelector { pub rust_field_name: Ident, pub query_field_name: String, pub field_type: FieldType, pub type_lock: Ident, pub argument_structs_path: Ident, pub required_args: Vec<FieldArgument>, pub selection_builder: TypePath, }
Expand description
A selection function for a field in our generated DSL
Each object in the schema will have one of these for each of it’s fields. Calling this function will return a SelectionBuilder that can be used to supply other arguments, and eventually build a selection set.
Fields
rust_field_name: Ident
query_field_name: String
field_type: FieldType
type_lock: Ident
argument_structs_path: Ident
required_args: Vec<FieldArgument>
selection_builder: TypePath
Implementations
pub fn for_field(
name: &str,
field_type: FieldType,
type_lock: Ident,
argument_structs_path: Ident,
required_args: Vec<InputValue<'static, String>>,
selection_builder: TypePath,
type_index: &TypeIndex<'_>
) -> FieldSelector
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FieldSelector
impl !Send for FieldSelector
impl !Sync for FieldSelector
impl Unpin for FieldSelector
impl UnwindSafe for FieldSelector
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty. Read more