Struct leetcode_cli::cache::models::Problem [−][src]
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: Stringfid: i32id: i32level: i32locked: boolname: Stringpercent: f32slug: Stringstarred: boolstatus: Stringdesc: StringTrait Implementations
type Changeset = <(Eq<category, &'update String>, Eq<fid, &'update i32>, Eq<level, &'update i32>, Eq<locked, &'update bool>, Eq<name, &'update String>, Eq<percent, &'update f32>, Eq<slug, &'update String>, Eq<starred, &'update bool>, Eq<status, &'update String>, Eq<desc, &'update String>) as AsChangeset>::Changeset
type Changeset = <(Eq<category, &'update String>, Eq<fid, &'update i32>, Eq<level, &'update i32>, Eq<locked, &'update bool>, Eq<name, &'update String>, Eq<percent, &'update f32>, Eq<slug, &'update String>, Eq<starred, &'update bool>, Eq<status, &'update String>, Eq<desc, &'update String>) as AsChangeset>::Changeset
The update statement this type represents
Convert self into the actual update statement being executed
The update statement this type represents
Convert self into the actual update statement being executed
type Values = <(Option<Eq<category, String>>, Option<Eq<fid, i32>>, Option<Eq<id, i32>>, Option<Eq<level, i32>>, Option<Eq<locked, bool>>, Option<Eq<name, String>>, Option<Eq<percent, f32>>, Option<Eq<slug, String>>, Option<Eq<starred, bool>>, Option<Eq<status, String>>, Option<Eq<desc, String>>) as Insertable<table>>::Values
type Values = <(Option<Eq<category, String>>, Option<Eq<fid, i32>>, Option<Eq<id, i32>>, Option<Eq<level, i32>>, Option<Eq<locked, bool>>, Option<Eq<name, String>>, Option<Eq<percent, f32>>, Option<Eq<slug, String>>, Option<Eq<starred, bool>>, Option<Eq<status, String>>, Option<Eq<desc, String>>) as Insertable<table>>::Values
The VALUES clause to insert these records Read more
Insert self into a given table. Read more
type Values = <(Option<Eq<category, &'insert String>>, Option<Eq<fid, &'insert i32>>, Option<Eq<id, &'insert i32>>, Option<Eq<level, &'insert i32>>, Option<Eq<locked, &'insert bool>>, Option<Eq<name, &'insert String>>, Option<Eq<percent, &'insert f32>>, Option<Eq<slug, &'insert String>>, Option<Eq<starred, &'insert bool>>, Option<Eq<status, &'insert String>>, Option<Eq<desc, &'insert String>>) as Insertable<table>>::Values
type Values = <(Option<Eq<category, &'insert String>>, Option<Eq<fid, &'insert i32>>, Option<Eq<id, &'insert i32>>, Option<Eq<level, &'insert i32>>, Option<Eq<locked, &'insert bool>>, Option<Eq<name, &'insert String>>, Option<Eq<percent, &'insert f32>>, Option<Eq<slug, &'insert String>>, Option<Eq<starred, &'insert bool>>, Option<Eq<status, &'insert String>>, Option<Eq<desc, &'insert String>>) as Insertable<table>>::Values
The VALUES clause to insert these records Read more
Insert self into a given table. Read more
Auto Trait Implementations
impl RefUnwindSafe for Problem
impl UnwindSafe for Problem
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Convert self to an expression for Diesel’s query builder. Read more
fn 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
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
