pub struct Queue {
pub id: i32,
pub created: NaiveDateTime,
pub task: String,
pub done: bool,
}
Expand description
Queue entries
Fields§
§id: i32
§created: NaiveDateTime
§task: String
§done: bool
Trait Implementations§
Source§impl<'update> AsChangeset for &'update Queue
impl<'update> AsChangeset for &'update Queue
Source§type Changeset = <(Eq<created, <&'update NaiveDateTime as AsExpression<<created as Expression>::SqlType>>::Expression>, Eq<task, <&'update String as AsExpression<<task as Expression>::SqlType>>::Expression>, Eq<done, <&'update bool as AsExpression<<done as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
type Changeset = <(Eq<created, <&'update NaiveDateTime as AsExpression<<created as Expression>::SqlType>>::Expression>, Eq<task, <&'update String as AsExpression<<task as Expression>::SqlType>>::Expression>, Eq<done, <&'update bool as AsExpression<<done as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedSource§impl<'update> AsChangeset for Queue
impl<'update> AsChangeset for Queue
Source§type Changeset = <(Eq<created, <NaiveDateTime as AsExpression<<created as Expression>::SqlType>>::Expression>, Eq<task, <String as AsExpression<<task as Expression>::SqlType>>::Expression>, Eq<done, <bool as AsExpression<<done as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
type Changeset = <(Eq<created, <NaiveDateTime as AsExpression<<created as Expression>::SqlType>>::Expression>, Eq<task, <String as AsExpression<<task as Expression>::SqlType>>::Expression>, Eq<done, <bool as AsExpression<<done as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert
self
into the actual update statement being executedSource§impl<'ident> Identifiable for &'ident Queue
impl<'ident> Identifiable for &'ident Queue
Auto Trait Implementations§
impl Freeze for Queue
impl RefUnwindSafe for Queue
impl Send for Queue
impl Sync for Queue
impl Unpin for Queue
impl UnwindSafe for Queue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more