[][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_struct: Option<ArgumentStruct>,
    pub optional_args_struct: Option<ArgumentStruct>,
}

A FieldSelector in our generated DSL.

Each field in the schema will have one of these associated with it. The generated function can be called to get a SelectionSet for that field.

Fields

rust_field_name: Identquery_field_name: Stringfield_type: FieldTypetype_lock: Identargument_structs_path: Identrequired_args_struct: Option<ArgumentStruct>optional_args_struct: Option<ArgumentStruct>

Implementations

impl FieldSelector[src]

pub fn for_field(
    name: &str,
    field_type: FieldType,
    type_lock: Ident,
    argument_structs_path: Ident,
    required_args_struct: Option<ArgumentStruct>,
    optional_args_struct: Option<ArgumentStruct>
) -> 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.