[][src]Struct cynic_codegen::query_dsl::FieldSelector

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,
}

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

impl FieldSelector[src]

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

impl Debug for FieldSelector[src]

impl ToTokens for FieldSelector[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Spanned for T where
    T: Spanned + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.