[−][src]Trait wundergraph::query_builder::selection::filter::FilterValue
A fundamental trait marking that a filter could be constructed for a given type
The generic parameter C
represents the type of the column (from diesel)
For most implementations this should just be generic over all compatible columns
Associated Types
type RawValue: Clone + FromInputValue<WundergraphScalarValue> + FromLookAheadValue + ToInputValue<WundergraphScalarValue>
The raw value type
Normally this is the same as Self
but there are cases like Option<T>
where we want something other (T
) as input for our filter operations
type AdditionalFilter
A type describing possible additional filters
For some cases a type supports more operations that just the default set
(eq, neq, gt, lt, …). In such cases a type representing those additional
operations could be specified here.
If there are no additional operations just use ()
Implementations on Foreign Types
impl<C> FilterValue<C> for i16
[src]
type RawValue = Self
type AdditionalFilter = ()
impl<C> FilterValue<C> for i32
[src]
type RawValue = Self
type AdditionalFilter = ()
impl<C> FilterValue<C> for i64
[src]
type RawValue = Self
type AdditionalFilter = ()
impl<C> FilterValue<C> for String
[src]
type RawValue = Self
type AdditionalFilter = StringFilter<C>
impl<C> FilterValue<C> for bool
[src]
type RawValue = Self
type AdditionalFilter = ()
impl<C> FilterValue<C> for f32
[src]
type RawValue = Self
type AdditionalFilter = ()
impl<C> FilterValue<C> for f64
[src]
type RawValue = Self
type AdditionalFilter = ()
impl<C, V> FilterValue<C> for Vec<V> where
V: FromLookAheadValue + FromInputValue<WundergraphScalarValue> + ToInputValue<WundergraphScalarValue> + FilterValue<C> + Clone,
[src]
V: FromLookAheadValue + FromInputValue<WundergraphScalarValue> + ToInputValue<WundergraphScalarValue> + FilterValue<C> + Clone,
type RawValue = Self
type AdditionalFilter = ()
impl<V, C> FilterValue<C> for Option<V> where
V: Clone + FromInputValue<WundergraphScalarValue> + FromLookAheadValue + ToInputValue<WundergraphScalarValue> + FilterValue<C>,
[src]
V: Clone + FromInputValue<WundergraphScalarValue> + FromLookAheadValue + ToInputValue<WundergraphScalarValue> + FilterValue<C>,