Struct stack_queue::TaskRef
source · [−]pub struct TaskRef<T: TaskQueue> { /* private fields */ }
Implementations
Trait Implementations
sourceimpl<T, Parent> BelongsTo<Parent> for TaskRef<T>where
T: TaskQueue,
T::Task: BelongsTo<Parent>,
impl<T, Parent> BelongsTo<Parent> for TaskRef<T>where
T: TaskQueue,
T::Task: BelongsTo<Parent>,
type ForeignKey = <<T as TaskQueue>::Task as BelongsTo<Parent>>::ForeignKey
type ForeignKey = <<T as TaskQueue>::Task as BelongsTo<Parent>>::ForeignKey
The foreign key of this struct
type ForeignKeyColumn = <<T as TaskQueue>::Task as BelongsTo<Parent>>::ForeignKeyColumn
type ForeignKeyColumn = <<T as TaskQueue>::Task as BelongsTo<Parent>>::ForeignKeyColumn
The database column representing the foreign key
of the table this struct represents Read more
sourcefn foreign_key(&self) -> Option<&Self::ForeignKey>
fn foreign_key(&self) -> Option<&Self::ForeignKey>
Returns the foreign key for
self
sourcefn foreign_key_column() -> Self::ForeignKeyColumn
fn foreign_key_column() -> Self::ForeignKeyColumn
Returns the foreign key column of this struct’s table
sourceimpl<T> PartialEq<TaskRef<T>> for TaskRef<T>where
T: TaskQueue,
impl<T> PartialEq<TaskRef<T>> for TaskRef<T>where
T: TaskQueue,
sourceimpl<T> PartialOrd<TaskRef<T>> for TaskRef<T>where
T: TaskQueue,
T::Task: PartialOrd,
impl<T> PartialOrd<TaskRef<T>> for TaskRef<T>where
T: TaskQueue,
T::Task: PartialOrd,
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T> Sync for TaskRef<T>where
T: TaskQueue,
Auto Trait Implementations
impl<T> !RefUnwindSafe for TaskRef<T>
impl<T> !Send for TaskRef<T>
impl<T> Unpin for TaskRef<T>where
<T as TaskQueue>::Task: Unpin,
impl<T> !UnwindSafe for TaskRef<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
self
to an expression for Diesel’s query builder. Read moresourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
T: SqlType + TypedExpressionType,
Convert
&self
to an expression for Diesel’s query builder. Read more