Struct cynic_codegen::use_schema::SelectorStruct[][src]

pub struct SelectorStruct {
    pub name: Ident,
    pub graphql_name: String,
    pub fields: Vec<FieldSelector>,
    pub selection_builders: Vec<FieldSelectionBuilder>,
}
Expand description

We generate a SelectorStruct for each queryable object in the schema.

When output from our macros these contain FieldSelector functions that create the selection sets which make up a graphql query.

Fields

name: Identgraphql_name: Stringfields: Vec<FieldSelector>selection_builders: Vec<FieldSelectionBuilder>

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.