[][src]Struct wundergraph::query_builder::selection::filter::FilterOption

pub struct FilterOption<T, C> where
    T: FilterValue<C>, 
{ /* fields omitted */ }

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]

type Ret = Box<dyn BoxableFilter<C::Table, DB, SqlType = Bool>>

The return type of the constructed filter

impl<T, C> Clone for FilterOption<T, C> where
    T: Clone + FilterValue<C>,
    T::AdditionalFilter: Clone
[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]

impl<T, C> FromInputValue<WundergraphScalarValue> for FilterOption<T, C> where
    T: FilterValue<C>,
    Self: InnerFilter
[src]

impl<T, C> FromLookAheadValue for FilterOption<T, C> where
    T: FromLookAheadValue + FilterValue<C>,
    C: Column,
    Self: InnerFilter
[src]

impl<T, C> GraphQLType<WundergraphScalarValue> for FilterOption<T, C> where
    T: FilterValue<C>,
    T: GraphQLType<WundergraphScalarValue>,
    Self: InnerFilter<Context = T::Context> + Nameable
[src]

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

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]

type Context = V::Context

The used context type

impl<V, C> Nameable for FilterOption<V, C> where
    V: Nameable + FilterValue<C>, 
[src]

impl<T, C> ToInputValue<WundergraphScalarValue> for FilterOption<T, C> where
    T: FilterValue<C>,
    Self: InnerFilter
[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

impl<T, C> Send for FilterOption<T, C> where
    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

impl<T, C> Unpin for FilterOption<T, C> where
    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

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> IntoSql for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.