[−][src]Struct wundergraph::query_builder::selection::filter::FilterOption
This struct summarize all possible filter operations for a given graphql field
There are two generic parameter
- T is a generic type that represents the (rust) type of the field the should be applied to
- C is the column type from diesel that matches the field in the database
Both types must be compatible
Trait Implementations
impl<T, C, DB> BuildFilter<DB> for FilterOption<T, C> where
DB: Backend + HasSqlType<C::SqlType> + 'static,
T: FilterValue<C>,
T::AdditionalFilter: BuildFilter<DB> + 'static,
<T::AdditionalFilter as BuildFilter<DB>>::Ret: AppearsOnTable<C::Table> + QueryFragment<DB> + 'static,
T::RawValue: AsExpression<C::SqlType> + ToSql<C::SqlType, DB> + 'static,
<T::RawValue as AsExpression<C::SqlType>>::Expression: NonAggregate + AppearsOnTable<C::Table> + QueryFragment<DB> + 'static,
C: Column + NonAggregate + QueryFragment<DB> + Default + 'static,
C::SqlType: SingleValue,
C::Table: 'static,
Eq<C, <T::RawValue as AsExpression<C::SqlType>>::Expression>: AppearsOnTable<C::Table, SqlType = Bool>,
NotEq<C, <T::RawValue as AsExpression<C::SqlType>>::Expression>: AppearsOnTable<C::Table, SqlType = Bool>,
In<C, Many<<T::RawValue as AsExpression<C::SqlType>>::Expression>>: AppearsOnTable<C::Table, SqlType = Bool>,
[src]
DB: Backend + HasSqlType<C::SqlType> + 'static,
T: FilterValue<C>,
T::AdditionalFilter: BuildFilter<DB> + 'static,
<T::AdditionalFilter as BuildFilter<DB>>::Ret: AppearsOnTable<C::Table> + QueryFragment<DB> + 'static,
T::RawValue: AsExpression<C::SqlType> + ToSql<C::SqlType, DB> + 'static,
<T::RawValue as AsExpression<C::SqlType>>::Expression: NonAggregate + AppearsOnTable<C::Table> + QueryFragment<DB> + 'static,
C: Column + NonAggregate + QueryFragment<DB> + Default + 'static,
C::SqlType: SingleValue,
C::Table: 'static,
Eq<C, <T::RawValue as AsExpression<C::SqlType>>::Expression>: AppearsOnTable<C::Table, SqlType = Bool>,
NotEq<C, <T::RawValue as AsExpression<C::SqlType>>::Expression>: AppearsOnTable<C::Table, SqlType = Bool>,
In<C, Many<<T::RawValue as AsExpression<C::SqlType>>::Expression>>: AppearsOnTable<C::Table, SqlType = Bool>,
type Ret = Box<dyn BoxableFilter<C::Table, DB, SqlType = Bool>>
The return type of the constructed filter
fn into_filter(self) -> Option<Self::Ret>
[src]
impl<T, C> Clone for FilterOption<T, C> where
T: Clone + FilterValue<C>,
T::AdditionalFilter: Clone,
[src]
T: Clone + FilterValue<C>,
T::AdditionalFilter: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug, C: Debug> Debug for FilterOption<T, C> where
T: FilterValue<C>,
T::RawValue: Debug,
T::RawValue: Debug,
T::RawValue: Debug,
T::AdditionalFilter: Debug,
[src]
T: FilterValue<C>,
T::RawValue: Debug,
T::RawValue: Debug,
T::RawValue: Debug,
T::AdditionalFilter: Debug,
impl<T, C> FromInputValue<WundergraphScalarValue> for FilterOption<T, C> where
T: FilterValue<C>,
Self: InnerFilter,
[src]
T: FilterValue<C>,
Self: InnerFilter,
fn from_input_value(v: &InputValue<WundergraphScalarValue>) -> Option<Self>
[src]
impl<T, C> FromLookAheadValue for FilterOption<T, C> where
T: FromLookAheadValue + FilterValue<C>,
C: Column,
Self: InnerFilter,
[src]
T: FromLookAheadValue + FilterValue<C>,
C: Column,
Self: InnerFilter,
fn from_look_ahead(a: &LookAheadValue<WundergraphScalarValue>) -> Option<Self>
[src]
impl<T, C> GraphQLType<WundergraphScalarValue> for FilterOption<T, C> where
T: FilterValue<C>,
T: GraphQLType<WundergraphScalarValue>,
Self: InnerFilter<Context = T::Context> + Nameable,
[src]
T: FilterValue<C>,
T: GraphQLType<WundergraphScalarValue>,
Self: InnerFilter<Context = T::Context> + Nameable,
type Context = T::Context
The expected context type for this GraphQL type Read more
type TypeInfo = NameBuilder<Self>
Type that may carry additional schema information Read more
fn name(info: &Self::TypeInfo) -> Option<&str>
[src]
fn meta<'r>(
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
[src]
info: &Self::TypeInfo,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> MetaType<'r, WundergraphScalarValue> where
WundergraphScalarValue: 'r,
fn resolve_field(
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
field_name: &str,
arguments: &Arguments<S>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn resolve_into_type(
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
[src]
&self,
info: &Self::TypeInfo,
type_name: &str,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Result<Value<S>, FieldError<S>>
fn concrete_type_name(
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
[src]
&self,
context: &Self::Context,
info: &Self::TypeInfo
) -> String
fn resolve(
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
[src]
&self,
info: &Self::TypeInfo,
selection_set: Option<&[Selection<S>]>,
executor: &Executor<Self::Context, S>
) -> Value<S>
impl<V, C> InnerFilter for FilterOption<V, C> where
V: GraphQLType<WundergraphScalarValue, TypeInfo = ()> + FromInputValue<WundergraphScalarValue> + ToInputValue<WundergraphScalarValue> + FromLookAheadValue + FilterValue<C> + 'static,
Self: Nameable,
V::AdditionalFilter: InnerFilter,
[src]
V: GraphQLType<WundergraphScalarValue, TypeInfo = ()> + FromInputValue<WundergraphScalarValue> + ToInputValue<WundergraphScalarValue> + FromLookAheadValue + FilterValue<C> + 'static,
Self: Nameable,
V::AdditionalFilter: InnerFilter,
type Context = V::Context
The used context type
const FIELD_COUNT: usize
[src]
fn from_inner_input_value(
obj: IndexMap<&str, &InputValue<WundergraphScalarValue>>
) -> Option<Self>
[src]
obj: IndexMap<&str, &InputValue<WundergraphScalarValue>>
) -> Option<Self>
fn from_inner_look_ahead(
obj: &[(&str, LookAheadValue<WundergraphScalarValue>)]
) -> Self
[src]
obj: &[(&str, LookAheadValue<WundergraphScalarValue>)]
) -> Self
fn to_inner_input_value(
&self,
map: &mut IndexMap<&str, InputValue<WundergraphScalarValue>>
)
[src]
&self,
map: &mut IndexMap<&str, InputValue<WundergraphScalarValue>>
)
fn register_fields<'r>(
_info: &NameBuilder<Self>,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> Vec<Argument<'r, WundergraphScalarValue>>
[src]
_info: &NameBuilder<Self>,
registry: &mut Registry<'r, WundergraphScalarValue>
) -> Vec<Argument<'r, WundergraphScalarValue>>
impl<V, C> Nameable for FilterOption<V, C> where
V: Nameable + FilterValue<C>,
[src]
V: Nameable + FilterValue<C>,
impl<T, C> ToInputValue<WundergraphScalarValue> for FilterOption<T, C> where
T: FilterValue<C>,
Self: InnerFilter,
[src]
T: FilterValue<C>,
Self: InnerFilter,
fn to_input_value(&self) -> InputValue<WundergraphScalarValue>
[src]
Auto Trait Implementations
impl<T, C> RefUnwindSafe for FilterOption<T, C> where
C: RefUnwindSafe,
<T as FilterValue<C>>::AdditionalFilter: RefUnwindSafe,
<T as FilterValue<C>>::RawValue: RefUnwindSafe,
C: RefUnwindSafe,
<T as FilterValue<C>>::AdditionalFilter: RefUnwindSafe,
<T as FilterValue<C>>::RawValue: RefUnwindSafe,
impl<T, C> Send for FilterOption<T, C> where
C: Send,
<T as FilterValue<C>>::AdditionalFilter: Send,
<T as FilterValue<C>>::RawValue: Send,
C: Send,
<T as FilterValue<C>>::AdditionalFilter: Send,
<T as FilterValue<C>>::RawValue: Send,
impl<T, C> Sync for FilterOption<T, C> where
C: Sync,
<T as FilterValue<C>>::AdditionalFilter: Sync,
<T as FilterValue<C>>::RawValue: Sync,
C: Sync,
<T as FilterValue<C>>::AdditionalFilter: Sync,
<T as FilterValue<C>>::RawValue: Sync,
impl<T, C> Unpin for FilterOption<T, C> where
C: Unpin,
<T as FilterValue<C>>::AdditionalFilter: Unpin,
<T as FilterValue<C>>::RawValue: Unpin,
C: Unpin,
<T as FilterValue<C>>::AdditionalFilter: Unpin,
<T as FilterValue<C>>::RawValue: Unpin,
impl<T, C> UnwindSafe for FilterOption<T, C> where
C: UnwindSafe,
<T as FilterValue<C>>::AdditionalFilter: UnwindSafe,
<T as FilterValue<C>>::RawValue: UnwindSafe,
C: UnwindSafe,
<T as FilterValue<C>>::AdditionalFilter: UnwindSafe,
<T as FilterValue<C>>::RawValue: UnwindSafe,
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> IntoSql for T
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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>,