pub struct Item {Show 18 fields
pub id: i32,
pub calendar: i32,
pub year: Option<i32>,
pub season: Option<i32>,
pub month: Option<i32>,
pub day: i32,
pub kind: i32,
pub fixed_date: bool,
pub all_day: bool,
pub title: Option<String>,
pub note: Option<String>,
pub datetime: Option<String>,
pub duration: Option<i32>,
pub status: Option<i32>,
pub order_in_week: Option<String>,
pub order_in_resolution: Option<String>,
pub sync: Option<i32>,
pub uuid: Option<String>,
}
Fields§
§id: i32
§calendar: i32
§year: Option<i32>
§season: Option<i32>
§month: Option<i32>
§day: i32
§kind: i32
§fixed_date: bool
§all_day: bool
§title: Option<String>
§note: Option<String>
§datetime: Option<String>
§duration: Option<i32>
§status: Option<i32>
§order_in_week: Option<String>
§order_in_resolution: Option<String>
§sync: Option<i32>
§uuid: Option<String>
Trait Implementations§
Source§impl<'update> AsChangeset for &'update Item
impl<'update> AsChangeset for &'update Item
Source§type Changeset = <(Grouped<Eq<calendar, <&'update i32 as AsExpression<<calendar as Expression>::SqlType>>::Expression>>, Grouped<Eq<year, <&'update Option<i32> as AsExpression<<year as Expression>::SqlType>>::Expression>>, Grouped<Eq<season, <&'update Option<i32> as AsExpression<<season as Expression>::SqlType>>::Expression>>, Grouped<Eq<month, <&'update Option<i32> as AsExpression<<month as Expression>::SqlType>>::Expression>>, Grouped<Eq<day, <&'update i32 as AsExpression<<day as Expression>::SqlType>>::Expression>>, Grouped<Eq<kind, <&'update i32 as AsExpression<<kind as Expression>::SqlType>>::Expression>>, Grouped<Eq<fixed_date, <&'update bool as AsExpression<<fixed_date as Expression>::SqlType>>::Expression>>, Grouped<Eq<all_day, <&'update bool as AsExpression<<all_day as Expression>::SqlType>>::Expression>>, Grouped<Eq<title, <&'update Option<String> as AsExpression<<title as Expression>::SqlType>>::Expression>>, Grouped<Eq<note, <&'update Option<String> as AsExpression<<note as Expression>::SqlType>>::Expression>>, Grouped<Eq<datetime, <&'update Option<String> as AsExpression<<datetime as Expression>::SqlType>>::Expression>>, Grouped<Eq<duration, <&'update Option<i32> as AsExpression<<duration as Expression>::SqlType>>::Expression>>, Grouped<Eq<status, <&'update Option<i32> as AsExpression<<status as Expression>::SqlType>>::Expression>>, Grouped<Eq<order_in_week, <&'update Option<String> as AsExpression<<order_in_week as Expression>::SqlType>>::Expression>>, Grouped<Eq<order_in_resolution, <&'update Option<String> as AsExpression<<order_in_resolution as Expression>::SqlType>>::Expression>>, Grouped<Eq<sync, <&'update Option<i32> as AsExpression<<sync as Expression>::SqlType>>::Expression>>, Grouped<Eq<uuid, <&'update Option<String> as AsExpression<<uuid as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Grouped<Eq<calendar, <&'update i32 as AsExpression<<calendar as Expression>::SqlType>>::Expression>>, Grouped<Eq<year, <&'update Option<i32> as AsExpression<<year as Expression>::SqlType>>::Expression>>, Grouped<Eq<season, <&'update Option<i32> as AsExpression<<season as Expression>::SqlType>>::Expression>>, Grouped<Eq<month, <&'update Option<i32> as AsExpression<<month as Expression>::SqlType>>::Expression>>, Grouped<Eq<day, <&'update i32 as AsExpression<<day as Expression>::SqlType>>::Expression>>, Grouped<Eq<kind, <&'update i32 as AsExpression<<kind as Expression>::SqlType>>::Expression>>, Grouped<Eq<fixed_date, <&'update bool as AsExpression<<fixed_date as Expression>::SqlType>>::Expression>>, Grouped<Eq<all_day, <&'update bool as AsExpression<<all_day as Expression>::SqlType>>::Expression>>, Grouped<Eq<title, <&'update Option<String> as AsExpression<<title as Expression>::SqlType>>::Expression>>, Grouped<Eq<note, <&'update Option<String> as AsExpression<<note as Expression>::SqlType>>::Expression>>, Grouped<Eq<datetime, <&'update Option<String> as AsExpression<<datetime as Expression>::SqlType>>::Expression>>, Grouped<Eq<duration, <&'update Option<i32> as AsExpression<<duration as Expression>::SqlType>>::Expression>>, Grouped<Eq<status, <&'update Option<i32> as AsExpression<<status as Expression>::SqlType>>::Expression>>, Grouped<Eq<order_in_week, <&'update Option<String> as AsExpression<<order_in_week as Expression>::SqlType>>::Expression>>, Grouped<Eq<order_in_resolution, <&'update Option<String> as AsExpression<<order_in_resolution as Expression>::SqlType>>::Expression>>, Grouped<Eq<sync, <&'update Option<i32> as AsExpression<<sync as Expression>::SqlType>>::Expression>>, Grouped<Eq<uuid, <&'update Option<String> as AsExpression<<uuid as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self
into the actual update statement being executedSource§impl AsChangeset for Item
impl AsChangeset for Item
Source§type Changeset = <(Grouped<Eq<calendar, <i32 as AsExpression<<calendar as Expression>::SqlType>>::Expression>>, Grouped<Eq<year, <Option<i32> as AsExpression<<year as Expression>::SqlType>>::Expression>>, Grouped<Eq<season, <Option<i32> as AsExpression<<season as Expression>::SqlType>>::Expression>>, Grouped<Eq<month, <Option<i32> as AsExpression<<month as Expression>::SqlType>>::Expression>>, Grouped<Eq<day, <i32 as AsExpression<<day as Expression>::SqlType>>::Expression>>, Grouped<Eq<kind, <i32 as AsExpression<<kind as Expression>::SqlType>>::Expression>>, Grouped<Eq<fixed_date, <bool as AsExpression<<fixed_date as Expression>::SqlType>>::Expression>>, Grouped<Eq<all_day, <bool as AsExpression<<all_day as Expression>::SqlType>>::Expression>>, Grouped<Eq<title, <Option<String> as AsExpression<<title as Expression>::SqlType>>::Expression>>, Grouped<Eq<note, <Option<String> as AsExpression<<note as Expression>::SqlType>>::Expression>>, Grouped<Eq<datetime, <Option<String> as AsExpression<<datetime as Expression>::SqlType>>::Expression>>, Grouped<Eq<duration, <Option<i32> as AsExpression<<duration as Expression>::SqlType>>::Expression>>, Grouped<Eq<status, <Option<i32> as AsExpression<<status as Expression>::SqlType>>::Expression>>, Grouped<Eq<order_in_week, <Option<String> as AsExpression<<order_in_week as Expression>::SqlType>>::Expression>>, Grouped<Eq<order_in_resolution, <Option<String> as AsExpression<<order_in_resolution as Expression>::SqlType>>::Expression>>, Grouped<Eq<sync, <Option<i32> as AsExpression<<sync as Expression>::SqlType>>::Expression>>, Grouped<Eq<uuid, <Option<String> as AsExpression<<uuid as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
type Changeset = <(Grouped<Eq<calendar, <i32 as AsExpression<<calendar as Expression>::SqlType>>::Expression>>, Grouped<Eq<year, <Option<i32> as AsExpression<<year as Expression>::SqlType>>::Expression>>, Grouped<Eq<season, <Option<i32> as AsExpression<<season as Expression>::SqlType>>::Expression>>, Grouped<Eq<month, <Option<i32> as AsExpression<<month as Expression>::SqlType>>::Expression>>, Grouped<Eq<day, <i32 as AsExpression<<day as Expression>::SqlType>>::Expression>>, Grouped<Eq<kind, <i32 as AsExpression<<kind as Expression>::SqlType>>::Expression>>, Grouped<Eq<fixed_date, <bool as AsExpression<<fixed_date as Expression>::SqlType>>::Expression>>, Grouped<Eq<all_day, <bool as AsExpression<<all_day as Expression>::SqlType>>::Expression>>, Grouped<Eq<title, <Option<String> as AsExpression<<title as Expression>::SqlType>>::Expression>>, Grouped<Eq<note, <Option<String> as AsExpression<<note as Expression>::SqlType>>::Expression>>, Grouped<Eq<datetime, <Option<String> as AsExpression<<datetime as Expression>::SqlType>>::Expression>>, Grouped<Eq<duration, <Option<i32> as AsExpression<<duration as Expression>::SqlType>>::Expression>>, Grouped<Eq<status, <Option<i32> as AsExpression<<status as Expression>::SqlType>>::Expression>>, Grouped<Eq<order_in_week, <Option<String> as AsExpression<<order_in_week as Expression>::SqlType>>::Expression>>, Grouped<Eq<order_in_resolution, <Option<String> as AsExpression<<order_in_resolution as Expression>::SqlType>>::Expression>>, Grouped<Eq<sync, <Option<i32> as AsExpression<<sync as Expression>::SqlType>>::Expression>>, Grouped<Eq<uuid, <Option<String> as AsExpression<<uuid as Expression>::SqlType>>::Expression>>) as AsChangeset>::Changeset
The update statement this type represents
Source§fn as_changeset(self) -> <Self as AsChangeset>::Changeset
fn as_changeset(self) -> <Self as AsChangeset>::Changeset
Convert
self
into the actual update statement being executedSource§impl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'ident> Identifiable for &'ident Item
impl<'ident> Identifiable for &'ident Item
Source§impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17), __DB> for Itemwhere
(i32, i32, Option<i32>, Option<i32>, Option<i32>, i32, i32, bool, bool, Option<String>, Option<String>, Option<String>, Option<i32>, Option<i32>, Option<String>, Option<String>, Option<i32>, Option<String>): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17), __DB>,
impl<__DB: Backend, __ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17> Queryable<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17), __DB> for Itemwhere
(i32, i32, Option<i32>, Option<i32>, Option<i32>, i32, i32, bool, bool, Option<String>, Option<String>, Option<String>, Option<i32>, Option<i32>, Option<String>, Option<String>, Option<i32>, Option<String>): FromStaticSqlRow<(__ST0, __ST1, __ST2, __ST3, __ST4, __ST5, __ST6, __ST7, __ST8, __ST9, __ST10, __ST11, __ST12, __ST13, __ST14, __ST15, __ST16, __ST17), __DB>,
Source§impl<__DB: Backend> Selectable<__DB> for Item
impl<__DB: Backend> Selectable<__DB> for Item
Source§type SelectExpression = (id, calendar, year, season, month, day, kind, fixed_date, all_day, title, note, datetime, duration, status, order_in_week, order_in_resolution, sync, uuid)
type SelectExpression = (id, calendar, year, season, month, day, kind, fixed_date, all_day, title, note, datetime, duration, status, order_in_week, order_in_resolution, sync, uuid)
The expression you’d like to select. Read more
Source§fn construct_selection() -> Self::SelectExpression
fn construct_selection() -> Self::SelectExpression
Construct an instance of the expression
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read moreSource§impl<T, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
impl<T, DB> SelectableHelper<DB> for Twhere
T: Selectable<DB>,
DB: Backend,
Source§fn as_select() -> SelectBy<T, DB>
fn as_select() -> SelectBy<T, DB>
Construct a select clause based on a
Selectable
implementation. Read moreSource§fn as_returning() -> SelectBy<Self, DB>
fn as_returning() -> SelectBy<Self, DB>
An alias for
as_select
that can be used with returning clausesSource§impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
Source§const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE
The number of fields that this type will consume.