Struct Item

Source
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

Source§

type Target = table

The table which Self::Changeset will be updating
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

The update statement this type represents
Source§

fn as_changeset(self) -> <Self as AsChangeset>::Changeset

Convert self into the actual update statement being executed
Source§

impl AsChangeset for Item

Source§

type Target = table

The table which Self::Changeset will be updating
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

The update statement this type represents
Source§

fn as_changeset(self) -> <Self as AsChangeset>::Changeset

Convert self into the actual update statement being executed
Source§

impl Clone for Item

Source§

fn clone(&self) -> Item

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Item

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Item

Source§

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 From<&Item> for ItemView

Source§

fn from(item: &Item) -> Self

Converts to this type from the input type.
Source§

impl HasTable for Item

Source§

type Table = table

The table this type is associated with.
Source§

fn table() -> <Self as HasTable>::Table

Returns the table this type is associated with.
Source§

impl<'ident> Identifiable for &'ident Item

Source§

type Id = &'ident i32

The type of this struct’s identifier. Read more
Source§

fn id(self) -> <Self as Identifiable>::Id

Returns the identifier for this record. Read more
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 Item

Source§

type Row = (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>)

The Rust type you’d like to map from. Read more
Source§

fn build( row: (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>), ) -> Result<Self>

Construct an instance of this type
Source§

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)

The expression you’d like to select. Read more
Source§

fn construct_selection() -> Self::SelectExpression

Construct an instance of the expression
Source§

impl Serialize for Item

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<T> IntoSql for T

Source§

fn into_sql<T>(self) -> Self::Expression

Convert self to an expression for Diesel’s query builder. Read more
Source§

fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
where &'a Self: AsExpression<T>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, DB> SelectableHelper<DB> for T
where T: Selectable<DB>, DB: Backend,

Source§

fn as_select() -> SelectBy<T, DB>

Construct a select clause based on a Selectable implementation. Read more
Source§

fn as_returning() -> SelectBy<Self, DB>

An alias for as_select that can be used with returning clauses
Source§

impl<T, ST, DB> StaticallySizedRow<ST, DB> for T
where ST: SqlTypeOrSelectable + TupleSize, T: Queryable<ST, DB>, DB: Backend,

Source§

const FIELD_COUNT: usize = <ST as crate::util::TupleSize>::SIZE

The number of fields that this type will consume.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T