[−][src]Struct cynic_codegen::query_dsl::FieldSelector
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: TypePathImplementations
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]
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
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>,