Struct cynic_codegen::use_schema::FieldSelector [−][src]
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: TypePathImplementations
impl FieldSelector[src]
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 ToTokens for FieldSelector[src]
impl ToTokens for FieldSelector[src]fn to_tokens(&self, tokens: &mut TokenStream)[src]
pub fn to_token_stream(&self) -> TokenStream[src]
pub fn into_token_stream(self) -> TokenStream[src]
Auto Trait Implementations
impl RefUnwindSafe for FieldSelector
impl RefUnwindSafe for FieldSelectorimpl !Send for FieldSelector
impl !Send for FieldSelectorimpl !Sync for FieldSelector
impl !Sync for FieldSelectorimpl Unpin for FieldSelector
impl Unpin for FieldSelectorimpl UnwindSafe for FieldSelector
impl UnwindSafe for FieldSelector