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: Identquery_field_name: Stringfield_type: FieldTypetype_lock: Identargument_structs_path: Identrequired_args: Vec<FieldArgument>selection_builder: TypePathImplementations
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[src]Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FieldSelectorimpl !Send for FieldSelectorimpl !Sync for FieldSelectorimpl Unpin for FieldSelectorimpl UnwindSafe for FieldSelectorBlanket 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