Struct leetcode_cli::cache::schemas::problems::table [−][src]
pub struct table;
The actual table struct
This is the type which provides the base methods of the query
builder, such as .select
and .filter
.
Implementations
Trait Implementations
impl AppearsInFromClause<table> for table
[src]
impl AppearsInFromClause<table> for table
[src]impl AsQuery for table
[src]
impl AsQuery for table
[src]type Query = SelectStatement<Self>
type Query = SelectStatement<Self>
What kind of query does this type represent?
impl<T> Insertable<T> for table where
<table as AsQuery>::Query: Insertable<T>,
[src]
impl<T> Insertable<T> for table where
<table as AsQuery>::Query: Insertable<T>,
[src]type Values = <<table as AsQuery>::Query as Insertable<T>>::Values
type Values = <<table as AsQuery>::Query as Insertable<T>>::Values
The VALUES
clause to insert these records Read more
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]Insert self
into a given table. Read more
impl<'a, T> Insertable<T> for &'a table where
table: Insertable<T>,
[src]
impl<'a, T> Insertable<T> for &'a table where
table: Insertable<T>,
[src]type Values = <table as Insertable<T>>::Values
type Values = <table as Insertable<T>>::Values
The VALUES
clause to insert these records Read more
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]Insert self
into a given table. Read more
impl<'insert> Insertable<table> for Problem
[src]
impl<'insert> Insertable<table> for Problem
[src]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
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]Insert self
into a given table. Read more
impl<'insert> Insertable<table> for &'insert Problem
[src]
impl<'insert> Insertable<table> for &'insert Problem
[src]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
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]Insert self
into a given table. Read more
impl IntoUpdateTarget for table
[src]
impl IntoUpdateTarget for table
[src]type WhereClause = <Self::Query as IntoUpdateTarget>::WhereClause
type WhereClause = <Self::Query as IntoUpdateTarget>::WhereClause
What is the WHERE
clause of this target?
fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
[src]
fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
[src]Decomposes self
into the table and where clause.
impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>,
[src]
impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>,
[src]type FromClause = BoxedSelectStatement<'a, QS, ST, DB>
type OnClause = <BoxedSelectStatement<'a, QS, ST, DB> as JoinTo<table>>::OnClause
fn join_target(
rhs: BoxedSelectStatement<'a, QS, ST, DB>
) -> (Self::FromClause, Self::OnClause)
[src]
rhs: BoxedSelectStatement<'a, QS, ST, DB>
) -> (Self::FromClause, Self::OnClause)
impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table where
Join<Left, Right, Kind>: JoinTo<table>,
[src]
impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table where
Join<Left, Right, Kind>: JoinTo<table>,
[src]type FromClause = Join<Left, Right, Kind>
type OnClause = <Join<Left, Right, Kind> as JoinTo<table>>::OnClause
fn join_target(
rhs: Join<Left, Right, Kind>
) -> (Self::FromClause, Self::OnClause)
[src]
rhs: Join<Left, Right, Kind>
) -> (Self::FromClause, Self::OnClause)
impl<Join, On> JoinTo<JoinOn<Join, On>> for table where
JoinOn<Join, On>: JoinTo<table>,
[src]
impl<Join, On> JoinTo<JoinOn<Join, On>> for table where
JoinOn<Join, On>: JoinTo<table>,
[src]type FromClause = JoinOn<Join, On>
type OnClause = <JoinOn<Join, On> as JoinTo<table>>::OnClause
fn join_target(rhs: JoinOn<Join, On>) -> (Self::FromClause, Self::OnClause)
[src]
impl<F, S, D, W, O, L, Of, G> JoinTo<SelectStatement<F, S, D, W, O, L, Of, G, NoLockingClause>> for table where
SelectStatement<F, S, D, W, O, L, Of, G>: JoinTo<table>,
[src]
impl<F, S, D, W, O, L, Of, G> JoinTo<SelectStatement<F, S, D, W, O, L, Of, G, NoLockingClause>> for table where
SelectStatement<F, S, D, W, O, L, Of, G>: JoinTo<table>,
[src]type FromClause = SelectStatement<F, S, D, W, O, L, Of, G>
type OnClause = <SelectStatement<F, S, D, W, O, L, Of, G> as JoinTo<table>>::OnClause
fn join_target(
rhs: SelectStatement<F, S, D, W, O, L, Of, G>
) -> (Self::FromClause, Self::OnClause)
[src]
rhs: SelectStatement<F, S, D, W, O, L, Of, G>
) -> (Self::FromClause, Self::OnClause)
impl QueryId for table
[src]
impl QueryId for table
[src]const HAS_STATIC_QUERY_ID: bool
[src]
const HAS_STATIC_QUERY_ID: bool
[src]Can the SQL generated by Self
be uniquely identified by its type? Read more
impl QuerySource for table
[src]
impl QuerySource for table
[src]type FromClause = Identifier<'static>
type FromClause = Identifier<'static>
The type returned by from_clause
type DefaultSelection = Self::AllColumns
type DefaultSelection = Self::AllColumns
The type returned by default_selection
fn from_clause(&self) -> Self::FromClause
[src]
fn from_clause(&self) -> Self::FromClause
[src]The actual FROM
clause of this type. This is typically only called in
QueryFragment
implementations. Read more
fn default_selection(&self) -> Self::DefaultSelection
[src]
fn default_selection(&self) -> Self::DefaultSelection
[src]The default select clause of this type, which should be used if no
select clause was explicitly specified. This should always be a tuple of
all the desired columns, not star
Read more
impl Table for table
[src]
impl Table for table
[src]type PrimaryKey = id
type PrimaryKey = id
The type returned by primary_key
type AllColumns = (category, fid, id, level, locked, name, percent, slug, starred, status, desc)
type AllColumns = (category, fid, id, level, locked, name, percent, slug, starred, status, desc)
The type returned by all_columns
fn primary_key(&self) -> Self::PrimaryKey
[src]
fn primary_key(&self) -> Self::PrimaryKey
[src]Returns the primary key of this table. Read more
fn all_columns() -> Self::AllColumns
[src]
fn all_columns() -> Self::AllColumns
[src]Returns a tuple of all columns belonging to this table.
impl AppearsOnTable<table> for star
[src]
impl Copy for table
[src]
impl SelectableExpression<table> for star
[src]
impl SelectableExpression<table> for category
[src]
impl SelectableExpression<table> for status
[src]
impl SelectableExpression<table> for desc
[src]
impl SelectableExpression<table> for fid
[src]
impl SelectableExpression<table> for id
[src]
impl SelectableExpression<table> for level
[src]
impl SelectableExpression<table> for locked
[src]
impl SelectableExpression<table> for name
[src]
impl SelectableExpression<table> for percent
[src]
impl SelectableExpression<table> for slug
[src]
impl SelectableExpression<table> for starred
[src]
impl<'insert> UndecoratedInsertRecord<table> for Problem
[src]
Auto Trait Implementations
impl RefUnwindSafe for table
impl Send for table
impl Sync for table
impl Unpin for table
impl UnwindSafe for table
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ForUpdateDsl for T where
T: LockingDsl<ForUpdate>,
[src]
impl<T> ForUpdateDsl for T where
T: LockingDsl<ForUpdate>,
[src]type Output = <T as LockingDsl<ForUpdate>>::Output
type Output = <T as LockingDsl<ForUpdate>>::Output
use LockingDsl<ForUpdate>
instead
The type returned by for_update
. See dsl::ForUpdate
for
convenient access to this type. Read more
pub fn for_update(self) -> <T as ForUpdateDsl>::Output
[src]
pub fn for_update(self) -> <T as ForUpdateDsl>::Output
[src]use LockingDsl<ForUpdate>
instead
See the trait level documentation
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> IntoSql for T
[src]
impl<T> IntoSql for T
[src]fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]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>,
[src]
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]Convert &self
to an expression for Diesel’s query builder. Read more
impl<T> JoinOnDsl for T where
T: QuerySource,
[src]
impl<T> JoinOnDsl for T where
T: QuerySource,
[src]impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhs where
Lhs: Table,
[src]
impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhs where
Lhs: Table,
[src]type FromClause = Rhs
type OnClause = On
pub fn join_target(
rhs: OnClauseWrapper<Rhs, On>
) -> (<Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::FromClause, <Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::OnClause)
[src]
rhs: OnClauseWrapper<Rhs, On>
) -> (<Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::FromClause, <Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::OnClause)
impl<T> QueryDsl for T where
T: Table,
[src]
impl<T> QueryDsl for T where
T: Table,
[src]fn distinct(self) -> Self::Output where
Self: DistinctDsl,
[src]
fn distinct(self) -> Self::Output where
Self: DistinctDsl,
[src]Adds the DISTINCT
keyword to a query. Read more
fn select<Selection>(self, selection: Selection) -> Self::Output where
Self: SelectDsl<Selection>,
Selection: Expression,
[src]
fn select<Selection>(self, selection: Selection) -> Self::Output where
Self: SelectDsl<Selection>,
Selection: Expression,
[src]Adds a SELECT
clause to the query. Read more
fn count(self) -> Self::Output where
Self: SelectDsl<CountStar>,
[src]
fn count(self) -> Self::Output where
Self: SelectDsl<CountStar>,
[src]Get the count of a query. This is equivalent to .select(count_star())
Read more
fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, Inner>,
[src]
fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, Inner>,
[src]Join two tables using a SQL INNER JOIN
. Read more
fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
[src]
fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
[src]Join two tables using a SQL LEFT OUTER JOIN
. Read more
fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
[src]
fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
[src]Alias for left_outer_join
. Read more
fn filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: FilterDsl<Predicate>,
[src]
fn filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: FilterDsl<Predicate>,
[src]Adds to the WHERE
clause of a query. Read more
fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: OrFilterDsl<Predicate>,
[src]
fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: OrFilterDsl<Predicate>,
[src]Adds to the WHERE
clause of a query using OR
Read more
fn find<PK>(self, id: PK) -> Self::Output where
Self: FindDsl<PK>,
[src]
fn find<PK>(self, id: PK) -> Self::Output where
Self: FindDsl<PK>,
[src]Attempts to find a single record from the given table by primary key. Read more
fn order<Expr>(self, expr: Expr) -> Self::Output where
Self: OrderDsl<Expr>,
Expr: Expression,
[src]
fn order<Expr>(self, expr: Expr) -> Self::Output where
Self: OrderDsl<Expr>,
Expr: Expression,
[src]Sets the order clause of a query. Read more
fn order_by<Expr>(self, expr: Expr) -> Self::Output where
Self: OrderDsl<Expr>,
Expr: Expression,
[src]
fn order_by<Expr>(self, expr: Expr) -> Self::Output where
Self: OrderDsl<Expr>,
Expr: Expression,
[src]Alias for order
fn then_order_by<Order>(self, order: Order) -> Self::Output where
Self: ThenOrderDsl<Order>,
[src]
fn then_order_by<Order>(self, order: Order) -> Self::Output where
Self: ThenOrderDsl<Order>,
[src]Appends to the ORDER BY
clause of this SQL query. Read more
fn limit(self, limit: i64) -> Self::Output where
Self: LimitDsl,
[src]
fn limit(self, limit: i64) -> Self::Output where
Self: LimitDsl,
[src]Sets the limit clause of the query. Read more
fn offset(self, offset: i64) -> Self::Output where
Self: OffsetDsl,
[src]
fn offset(self, offset: i64) -> Self::Output where
Self: OffsetDsl,
[src]Sets the offset clause of the query. Read more
fn for_update(self) -> Self::Output where
Self: ForUpdateDsl,
[src]
fn for_update(self) -> Self::Output where
Self: ForUpdateDsl,
[src]Adds FOR UPDATE
to the end of the select statement. Read more
fn for_no_key_update(self) -> Self::Output where
Self: LockingDsl<ForNoKeyUpdate>,
[src]
fn for_no_key_update(self) -> Self::Output where
Self: LockingDsl<ForNoKeyUpdate>,
[src]Adds FOR NO KEY UPDATE
to the end of the select statement. Read more
fn for_share(self) -> Self::Output where
Self: LockingDsl<ForShare>,
[src]
fn for_share(self) -> Self::Output where
Self: LockingDsl<ForShare>,
[src]Adds FOR SHARE
to the end of the select statement. Read more
fn for_key_share(self) -> Self::Output where
Self: LockingDsl<ForKeyShare>,
[src]
fn for_key_share(self) -> Self::Output where
Self: LockingDsl<ForKeyShare>,
[src]Adds FOR KEY SHARE
to the end of the select statement. Read more
fn skip_locked(self) -> Self::Output where
Self: ModifyLockDsl<SkipLocked>,
[src]
fn skip_locked(self) -> Self::Output where
Self: ModifyLockDsl<SkipLocked>,
[src]Adds SKIP LOCKED
to the end of a FOR UPDATE
clause. Read more
fn no_wait(self) -> Self::Output where
Self: ModifyLockDsl<NoWait>,
[src]
fn no_wait(self) -> Self::Output where
Self: ModifyLockDsl<NoWait>,
[src]Adds NOWAIT
to the end of a FOR UPDATE
clause. Read more
fn into_boxed<'a, DB>(self) -> Self::Output where
Self: BoxedDsl<'a, DB>,
DB: Backend,
[src]
fn into_boxed<'a, DB>(self) -> Self::Output where
Self: BoxedDsl<'a, DB>,
DB: Backend,
[src]Boxes the pieces of a query into a single type. Read more
fn single_value(self) -> Self::Output where
Self: SingleValueDsl,
[src]
fn single_value(self) -> Self::Output where
Self: SingleValueDsl,
[src]Wraps this select statement in parenthesis, allowing it to be used as an expression. Read more
fn nullable(self) -> Self::Output where
Self: SelectNullableDsl,
[src]
fn nullable(self) -> Self::Output where
Self: SelectNullableDsl,
[src]Coerce the SQL type of the select clause to it’s nullable equivalent. Read more
impl<T, Conn> RunQueryDsl<Conn> for T where
T: Table,
[src]
impl<T, Conn> RunQueryDsl<Conn> for T where
T: Table,
[src]fn execute(self, conn: &Conn) -> Result<usize, Error> where
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
Conn: Connection,
[src]
fn execute(self, conn: &Conn) -> Result<usize, Error> where
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
Conn: Connection,
[src]Executes the given command, returning the number of rows affected. Read more
fn load<U>(self, conn: &Conn) -> Result<Vec<U, Global>, Error> where
Self: LoadQuery<Conn, U>,
[src]
fn load<U>(self, conn: &Conn) -> Result<Vec<U, Global>, Error> where
Self: LoadQuery<Conn, U>,
[src]Executes the given query, returning a Vec
with the returned rows. Read more
fn get_result<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LoadQuery<Conn, U>,
[src]
fn get_result<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LoadQuery<Conn, U>,
[src]Runs the command, and returns the affected row. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
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>,