[−][src]Enum wundergraph::query_builder::types::HasOne
Type used to indicate that a given field references a single other entity by id
Trait Implementations
impl<C, K, I, DB, Ctx> AsColumnFilter<C, DB, Ctx> for HasOne<K, I> where
DB: Backend + ApplyOffset + 'static,
I::Table: 'static,
I: LoadingHandler<DB, Ctx>,
<I::Table as QuerySource>::FromClause: QueryFragment<DB>,
DB::QueryBuilder: Default,
[src]
DB: Backend + ApplyOffset + 'static,
I::Table: 'static,
I: LoadingHandler<DB, Ctx>,
<I::Table as QuerySource>::FromClause: QueryFragment<DB>,
DB::QueryBuilder: Default,
type Filter = ReferenceFilter<C, Filter<I::Filter, I::Table>, <I::Table as Table>::PrimaryKey, ()>
Type of the filter
impl<'expr, R, T, ST> AsExpression<ST> for &'expr HasOne<R, T> where
&'expr R: AsExpression<ST>,
[src]
&'expr R: AsExpression<ST>,
type Expression = Bound<ST, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<ST, R, T> AsExpression<ST> for HasOne<R, T> where
R: AsExpression<ST>,
[src]
R: AsExpression<ST>,
type Expression = Bound<ST, Self>
The expression being returned
fn as_expression(self) -> Self::Expression
[src]
impl<K: Clone, O: Clone> Clone for HasOne<K, O>
[src]
impl<K: Debug, O: Debug> Debug for HasOne<K, O>
[src]
impl<R, T> Eq for HasOne<R, T> where
Self: PartialEq,
[src]
Self: PartialEq,
impl<R, T> FromInputValue<WundergraphScalarValue> for HasOne<R, T> where
R: FromInputValue<WundergraphScalarValue>,
[src]
R: FromInputValue<WundergraphScalarValue>,
fn from_input_value(v: &InputValue<WundergraphScalarValue>) -> Option<Self>
[src]
impl<R, T> FromLookAheadValue for HasOne<R, T> where
R: FromLookAheadValue,
[src]
R: FromLookAheadValue,
fn from_look_ahead(v: &LookAheadValue<WundergraphScalarValue>) -> Option<Self>
[src]
impl<R, T, DB, ST> FromSql<ST, DB> for HasOne<R, T> where
DB: Backend,
R: FromSql<ST, DB>,
[src]
DB: Backend,
R: FromSql<ST, DB>,
impl<R, T> Hash for HasOne<R, T> where
R: Hash + Eq,
&'a T: Identifiable<Id = &'a R>,
[src]
R: Hash + Eq,
&'a T: Identifiable<Id = &'a R>,
fn hash<H>(&self, hasher: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, K, I> Into<Option<&'a K>> for &'a HasOne<K, I> where
&'a I: Identifiable<Id = &'a K>,
K: Eq + Hash,
[src]
&'a I: Identifiable<Id = &'a K>,
K: Eq + Hash,
impl<'a, K, I> Into<Option<&'a K>> for &'a HasOne<Option<K>, Option<I>> where
&'a I: Identifiable<Id = &'a K>,
K: Eq + Hash,
[src]
&'a I: Identifiable<Id = &'a K>,
K: Eq + Hash,
impl<R, T> PartialEq<HasOne<R, T>> for HasOne<R, T> where
R: PartialEq + Hash + Eq,
&'a T: Identifiable<Id = &'a R>,
[src]
R: PartialEq + Hash + Eq,
&'a T: Identifiable<Id = &'a R>,
impl<R, T, DB, ST> Queryable<ST, DB> for HasOne<R, T> where
DB: Backend,
R: Queryable<ST, DB>,
[src]
DB: Backend,
R: Queryable<ST, DB>,
type Row = <R as Queryable<ST, DB>>::Row
The Rust type you'd like to map from. Read more
fn build(row: Self::Row) -> Self
[src]
impl<R, T, DB, Ctx> ResolveWundergraphFieldValue<DB, Ctx> for HasOne<R, T> where
HasOneResolver<R, T, Ctx>: FieldValueResolver<HasOne<R, T>, DB, Ctx>,
R: WundergraphValue + Clone + Eq + Hash,
Self::PlaceHolder: Into<Option<R>>,
Self: WundergraphValue,
DB: Backend,
[src]
HasOneResolver<R, T, Ctx>: FieldValueResolver<HasOne<R, T>, DB, Ctx>,
R: WundergraphValue + Clone + Eq + Hash,
Self::PlaceHolder: Into<Option<R>>,
Self: WundergraphValue,
DB: Backend,
type Resolver = HasOneResolver<R, T, Ctx>
A type implementing FieldValueResolver
used to resolve values of this type during query execution Read more
impl<R, T, DB, ST> ToSql<ST, DB> for HasOne<R, T> where
DB: Backend,
R: ToSql<ST, DB> + Eq + Hash,
&'a T: Identifiable<Id = &'a R>,
T: Debug,
[src]
DB: Backend,
R: ToSql<ST, DB> + Eq + Hash,
&'a T: Identifiable<Id = &'a R>,
T: Debug,
impl<R, T> WundergraphValue for HasOne<R, T> where
R: WundergraphValue + Clone + Eq + Hash,
&'a T: Identifiable<Id = &'a R>,
[src]
R: WundergraphValue + Clone + Eq + Hash,
&'a T: Identifiable<Id = &'a R>,
type PlaceHolder = R::PlaceHolder
A type used to load values of the specified sql type into Read more
type SqlType = R::SqlType
The corresponding diesel sql type Read more
Auto Trait Implementations
impl<K, O> RefUnwindSafe for HasOne<K, O> where
K: RefUnwindSafe,
O: RefUnwindSafe,
K: RefUnwindSafe,
O: RefUnwindSafe,
impl<K, O> Send for HasOne<K, O> where
K: Send,
O: Send,
K: Send,
O: Send,
impl<K, O> Sync for HasOne<K, O> where
K: Sync,
O: Sync,
K: Sync,
O: Sync,
impl<K, O> Unpin for HasOne<K, O> where
K: Unpin,
O: Unpin,
K: Unpin,
O: Unpin,
impl<K, O> UnwindSafe for HasOne<K, O> where
K: UnwindSafe,
O: UnwindSafe,
K: UnwindSafe,
O: 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>,