[][src]Enum wundergraph::query_builder::types::HasOne

pub enum HasOne<K, O> {
    // some variants omitted
}

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]

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]

type Expression = Bound<ST, Self>

The expression being returned

impl<ST, R, T> AsExpression<ST> for HasOne<R, T> where
    R: AsExpression<ST>, 
[src]

type Expression = Bound<ST, Self>

The expression being returned

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]

impl<R, T> FromInputValue<WundergraphScalarValue> for HasOne<R, T> where
    R: FromInputValue<WundergraphScalarValue>, 
[src]

impl<R, T> FromLookAheadValue for HasOne<R, T> where
    R: FromLookAheadValue
[src]

impl<R, T, DB, ST> FromSql<ST, DB> for HasOne<R, T> where
    DB: Backend,
    R: FromSql<ST, DB>, 
[src]

impl<R, T> Hash for HasOne<R, T> where
    R: Hash + Eq,
    &'a T: Identifiable<Id = &'a R>, 
[src]

impl<'a, K, I> Into<Option<&'a K>> for &'a HasOne<K, I> where
    &'a I: Identifiable<Id = &'a K>,
    K: Eq + Hash
[src]

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]

impl<R, T> PartialEq<HasOne<R, T>> for HasOne<R, T> where
    R: PartialEq + Hash + Eq,
    &'a T: Identifiable<Id = &'a R>, 
[src]

impl<R, T, DB, ST> Queryable<ST, DB> for HasOne<R, T> where
    DB: Backend,
    R: Queryable<ST, DB>, 
[src]

type Row = <R as Queryable<ST, DB>>::Row

The Rust type you'd like to map from. Read more

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]

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]

impl<R, T> WundergraphValue for HasOne<R, T> where
    R: WundergraphValue + Clone + Eq + Hash,
    &'a T: Identifiable<Id = &'a R>, 
[src]

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

impl<K, O> Send for HasOne<K, O> where
    K: Send,
    O: Send

impl<K, O> Sync for HasOne<K, O> where
    K: Sync,
    O: Sync

impl<K, O> Unpin for HasOne<K, O> where
    K: Unpin,
    O: Unpin

impl<K, O> UnwindSafe for HasOne<K, O> where
    K: UnwindSafe,
    O: 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.