[−][src]Struct cynic_codegen::query_dsl::FieldSelector
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]
name: &str,
field_type: FieldType,
type_lock: Ident,
argument_structs_path: Ident,
required_args_struct: Option<ArgumentStruct>,
optional_args_struct: Option<ArgumentStruct>
) -> FieldSelector
Trait Implementations
impl Debug for FieldSelector[src]
impl ToTokens for FieldSelector[src]
fn to_tokens(&self, tokens: &mut TokenStream)[src]
fn to_token_stream(&self) -> TokenStream[src]
fn into_token_stream(self) -> TokenStream[src]
Auto Trait Implementations
impl !RefUnwindSafe for FieldSelector
impl !Send for FieldSelector
impl !Sync for FieldSelector
impl Unpin for FieldSelector
impl UnwindSafe for FieldSelector
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Spanned for T where
T: Spanned + ?Sized, [src]
T: Spanned + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,