pub struct Problem {
pub category: String,
pub fid: i32,
pub id: i32,
pub level: i32,
pub locked: bool,
pub name: String,
pub percent: f32,
pub slug: String,
pub starred: bool,
pub status: String,
pub desc: String,
}
Expand description
Problem model
Fields
category: String
fid: i32
id: i32
level: i32
locked: bool
name: String
percent: f32
slug: String
starred: bool
status: String
desc: String
Trait Implementations
sourceimpl<'update> AsChangeset for &'update Problem
impl<'update> AsChangeset for &'update Problem
type Changeset = <(Eq<category, <&'update String as AsExpression<<category as Expression>::SqlType>>::Expression>, Eq<fid, <&'update i32 as AsExpression<<fid as Expression>::SqlType>>::Expression>, Eq<level, <&'update i32 as AsExpression<<level as Expression>::SqlType>>::Expression>, Eq<locked, <&'update bool as AsExpression<<locked as Expression>::SqlType>>::Expression>, Eq<name, <&'update String as AsExpression<<name as Expression>::SqlType>>::Expression>, Eq<percent, <&'update f32 as AsExpression<<percent as Expression>::SqlType>>::Expression>, Eq<slug, <&'update String as AsExpression<<slug as Expression>::SqlType>>::Expression>, Eq<starred, <&'update bool as AsExpression<<starred as Expression>::SqlType>>::Expression>, Eq<status, <&'update String as AsExpression<<status as Expression>::SqlType>>::Expression>, Eq<desc, <&'update String as AsExpression<<desc as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
type Changeset = <(Eq<category, <&'update String as AsExpression<<category as Expression>::SqlType>>::Expression>, Eq<fid, <&'update i32 as AsExpression<<fid as Expression>::SqlType>>::Expression>, Eq<level, <&'update i32 as AsExpression<<level as Expression>::SqlType>>::Expression>, Eq<locked, <&'update bool as AsExpression<<locked as Expression>::SqlType>>::Expression>, Eq<name, <&'update String as AsExpression<<name as Expression>::SqlType>>::Expression>, Eq<percent, <&'update f32 as AsExpression<<percent as Expression>::SqlType>>::Expression>, Eq<slug, <&'update String as AsExpression<<slug as Expression>::SqlType>>::Expression>, Eq<starred, <&'update bool as AsExpression<<starred as Expression>::SqlType>>::Expression>, Eq<status, <&'update String as AsExpression<<status as Expression>::SqlType>>::Expression>, Eq<desc, <&'update String as AsExpression<<desc as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
The update statement this type represents
sourcefn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert self
into the actual update statement being executed
sourceimpl<'update> AsChangeset for Problem
impl<'update> AsChangeset for Problem
type Changeset = <(Eq<category, <String as AsExpression<<category as Expression>::SqlType>>::Expression>, Eq<fid, <i32 as AsExpression<<fid as Expression>::SqlType>>::Expression>, Eq<level, <i32 as AsExpression<<level as Expression>::SqlType>>::Expression>, Eq<locked, <bool as AsExpression<<locked as Expression>::SqlType>>::Expression>, Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>, Eq<percent, <f32 as AsExpression<<percent as Expression>::SqlType>>::Expression>, Eq<slug, <String as AsExpression<<slug as Expression>::SqlType>>::Expression>, Eq<starred, <bool as AsExpression<<starred as Expression>::SqlType>>::Expression>, Eq<status, <String as AsExpression<<status as Expression>::SqlType>>::Expression>, Eq<desc, <String as AsExpression<<desc as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
type Changeset = <(Eq<category, <String as AsExpression<<category as Expression>::SqlType>>::Expression>, Eq<fid, <i32 as AsExpression<<fid as Expression>::SqlType>>::Expression>, Eq<level, <i32 as AsExpression<<level as Expression>::SqlType>>::Expression>, Eq<locked, <bool as AsExpression<<locked as Expression>::SqlType>>::Expression>, Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>, Eq<percent, <f32 as AsExpression<<percent as Expression>::SqlType>>::Expression>, Eq<slug, <String as AsExpression<<slug as Expression>::SqlType>>::Expression>, Eq<starred, <bool as AsExpression<<starred as Expression>::SqlType>>::Expression>, Eq<status, <String as AsExpression<<status as Expression>::SqlType>>::Expression>, Eq<desc, <String as AsExpression<<desc as Expression>::SqlType>>::Expression>) as AsChangeset>::Changeset
The update statement this type represents
sourcefn as_changeset(self) -> Self::Changeset
fn as_changeset(self) -> Self::Changeset
Convert self
into the actual update statement being executed
sourceimpl<'ident> Identifiable for &'ident Problem
impl<'ident> Identifiable for &'ident Problem
sourceimpl<'insert> Insertable<table> for Problem
impl<'insert> Insertable<table> for Problem
type Values = <(Option<Eq<category, <String as AsExpression<<category as Expression>::SqlType>>::Expression>>, Option<Eq<fid, <i32 as AsExpression<<fid as Expression>::SqlType>>::Expression>>, Option<Eq<id, <i32 as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<level, <i32 as AsExpression<<level as Expression>::SqlType>>::Expression>>, Option<Eq<locked, <bool as AsExpression<<locked as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<percent, <f32 as AsExpression<<percent as Expression>::SqlType>>::Expression>>, Option<Eq<slug, <String as AsExpression<<slug as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<status, <String as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<desc, <String as AsExpression<<desc as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<category, <String as AsExpression<<category as Expression>::SqlType>>::Expression>>, Option<Eq<fid, <i32 as AsExpression<<fid as Expression>::SqlType>>::Expression>>, Option<Eq<id, <i32 as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<level, <i32 as AsExpression<<level as Expression>::SqlType>>::Expression>>, Option<Eq<locked, <bool as AsExpression<<locked as Expression>::SqlType>>::Expression>>, Option<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<percent, <f32 as AsExpression<<percent as Expression>::SqlType>>::Expression>>, Option<Eq<slug, <String as AsExpression<<slug as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<status, <String as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<desc, <String as AsExpression<<desc as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
sourcefn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
Insert self
into a given table. Read more
sourceimpl<'insert> Insertable<table> for &'insert Problem
impl<'insert> Insertable<table> for &'insert Problem
type Values = <(Option<Eq<category, <&'insert String as AsExpression<<category as Expression>::SqlType>>::Expression>>, Option<Eq<fid, <&'insert i32 as AsExpression<<fid as Expression>::SqlType>>::Expression>>, Option<Eq<id, <&'insert i32 as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<level, <&'insert i32 as AsExpression<<level as Expression>::SqlType>>::Expression>>, Option<Eq<locked, <&'insert bool as AsExpression<<locked as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<percent, <&'insert f32 as AsExpression<<percent as Expression>::SqlType>>::Expression>>, Option<Eq<slug, <&'insert String as AsExpression<<slug as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <&'insert bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<status, <&'insert String as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<desc, <&'insert String as AsExpression<<desc as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<category, <&'insert String as AsExpression<<category as Expression>::SqlType>>::Expression>>, Option<Eq<fid, <&'insert i32 as AsExpression<<fid as Expression>::SqlType>>::Expression>>, Option<Eq<id, <&'insert i32 as AsExpression<<id as Expression>::SqlType>>::Expression>>, Option<Eq<level, <&'insert i32 as AsExpression<<level as Expression>::SqlType>>::Expression>>, Option<Eq<locked, <&'insert bool as AsExpression<<locked as Expression>::SqlType>>::Expression>>, Option<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>, Option<Eq<percent, <&'insert f32 as AsExpression<<percent as Expression>::SqlType>>::Expression>>, Option<Eq<slug, <&'insert String as AsExpression<<slug as Expression>::SqlType>>::Expression>>, Option<Eq<starred, <&'insert bool as AsExpression<<starred as Expression>::SqlType>>::Expression>>, Option<Eq<status, <&'insert String as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<desc, <&'insert String as AsExpression<<desc as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
sourcefn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
Insert self
into a given table. Read more
sourceimpl<__DB: Backend, __ST> Queryable<__ST, __DB> for Problem where
(String, i32, i32, i32, bool, String, f32, String, bool, String, String): Queryable<__ST, __DB>,
impl<__DB: Backend, __ST> Queryable<__ST, __DB> for Problem where
(String, i32, i32, i32, bool, String, f32, String, bool, String, String): Queryable<__ST, __DB>,
impl<'insert> UndecoratedInsertRecord<table> for Problem
Auto Trait Implementations
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnwindSafe for Problem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoSql for T
impl<T> IntoSql for T
sourcefn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Convert self
to an expression for Diesel’s query builder. Read more
sourcefn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more