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: TypePath

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Returns a Span covering the complete contents of this syntax tree node, or Span::call_site() if this node is empty. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.