Struct table
pub struct table;
Expand description
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 AsQuery for table
impl AsQuery for table
§impl<'a, T> Insertable<T> for &'a tablewhere
table: Insertable<T>,
impl<'a, T> Insertable<T> for &'a tablewhere
table: Insertable<T>,
§impl<T> Insertable<T> for table
impl<T> Insertable<T> for table
§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 moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read more§impl<'insert> Insertable<table> for &'insert LessonFeedback
impl<'insert> Insertable<table> for &'insert LessonFeedback
§type Values = <(Option<Eq<uuid, <&'insert Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <&'insert NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <&'insert Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <&'insert i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <&'insert RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>, Option<Eq<path, <&'insert String as AsExpression<<path as Expression>::SqlType>>::Expression>>, Option<Eq<teacher, <&'insert Uuid as AsExpression<<teacher as Expression>::SqlType>>::Expression>>, Option<Eq<support_orgs, <&'insert Vec<Uuid> as AsExpression<<support_orgs as Expression>::SqlType>>::Expression>>, Option<Eq<support_users, <&'insert Vec<Uuid> as AsExpression<<support_users as Expression>::SqlType>>::Expression>>, Option<Eq<comments, <&'insert Json<Vec<RecordFeedback>> as AsExpression<<comments as Expression>::SqlType>>::Expression>>, Option<Eq<status, <&'insert LessonFeedbackStatus as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<subject, <&'insert Subject as AsExpression<<subject as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<submitted_at, <&'insert NaiveDateTime as AsExpression<<submitted_at as Expression>::SqlType>>::Expression>>, Option<Eq<log, <&'insert Json<Vec<Log>> as AsExpression<<log as Expression>::SqlType>>::Expression>>, Option<Eq<year, <&'insert i32 as AsExpression<<year as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<uuid, <&'insert Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <&'insert NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <&'insert Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <&'insert i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <&'insert RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>, Option<Eq<path, <&'insert String as AsExpression<<path as Expression>::SqlType>>::Expression>>, Option<Eq<teacher, <&'insert Uuid as AsExpression<<teacher as Expression>::SqlType>>::Expression>>, Option<Eq<support_orgs, <&'insert Vec<Uuid> as AsExpression<<support_orgs as Expression>::SqlType>>::Expression>>, Option<Eq<support_users, <&'insert Vec<Uuid> as AsExpression<<support_users as Expression>::SqlType>>::Expression>>, Option<Eq<comments, <&'insert Json<Vec<RecordFeedback>> as AsExpression<<comments as Expression>::SqlType>>::Expression>>, Option<Eq<status, <&'insert LessonFeedbackStatus as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<subject, <&'insert Subject as AsExpression<<subject as Expression>::SqlType>>::Expression>>, Option<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<submitted_at, <&'insert NaiveDateTime as AsExpression<<submitted_at as Expression>::SqlType>>::Expression>>, Option<Eq<log, <&'insert Json<Vec<Log>> as AsExpression<<log as Expression>::SqlType>>::Expression>>, Option<Eq<year, <&'insert i32 as AsExpression<<year as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read more§impl<'insert> Insertable<table> for LessonFeedback
impl<'insert> Insertable<table> for LessonFeedback
§type Values = <(Option<Eq<uuid, <Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>, Option<Eq<path, <String as AsExpression<<path as Expression>::SqlType>>::Expression>>, Option<Eq<teacher, <Uuid as AsExpression<<teacher as Expression>::SqlType>>::Expression>>, Option<Eq<support_orgs, <Vec<Uuid> as AsExpression<<support_orgs as Expression>::SqlType>>::Expression>>, Option<Eq<support_users, <Vec<Uuid> as AsExpression<<support_users as Expression>::SqlType>>::Expression>>, Option<Eq<comments, <Json<Vec<RecordFeedback>> as AsExpression<<comments as Expression>::SqlType>>::Expression>>, Option<Eq<status, <LessonFeedbackStatus as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<subject, <Subject as AsExpression<<subject as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<submitted_at, <NaiveDateTime as AsExpression<<submitted_at as Expression>::SqlType>>::Expression>>, Option<Eq<log, <Json<Vec<Log>> as AsExpression<<log as Expression>::SqlType>>::Expression>>, Option<Eq<year, <i32 as AsExpression<<year as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
type Values = <(Option<Eq<uuid, <Uuid as AsExpression<<uuid as Expression>::SqlType>>::Expression>>, Option<Eq<updt, <NaiveDateTime as AsExpression<<updt as Expression>::SqlType>>::Expression>>, Option<Eq<updu, <Uuid as AsExpression<<updu as Expression>::SqlType>>::Expression>>, Option<Eq<ver, <i32 as AsExpression<<ver as Expression>::SqlType>>::Expression>>, Option<Eq<rstatus, <RStatus as AsExpression<<rstatus as Expression>::SqlType>>::Expression>>, Option<Eq<path, <String as AsExpression<<path as Expression>::SqlType>>::Expression>>, Option<Eq<teacher, <Uuid as AsExpression<<teacher as Expression>::SqlType>>::Expression>>, Option<Eq<support_orgs, <Vec<Uuid> as AsExpression<<support_orgs as Expression>::SqlType>>::Expression>>, Option<Eq<support_users, <Vec<Uuid> as AsExpression<<support_users as Expression>::SqlType>>::Expression>>, Option<Eq<comments, <Json<Vec<RecordFeedback>> as AsExpression<<comments as Expression>::SqlType>>::Expression>>, Option<Eq<status, <LessonFeedbackStatus as AsExpression<<status as Expression>::SqlType>>::Expression>>, Option<Eq<subject, <Subject as AsExpression<<subject as Expression>::SqlType>>::Expression>>, Option<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>, Option<Eq<submitted_at, <NaiveDateTime as AsExpression<<submitted_at as Expression>::SqlType>>::Expression>>, Option<Eq<log, <Json<Vec<Log>> as AsExpression<<log as Expression>::SqlType>>::Expression>>, Option<Eq<year, <i32 as AsExpression<<year as Expression>::SqlType>>::Expression>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
Self: Sized,
Insert
self
into a given table. Read more§impl IntoUpdateTarget for table
impl IntoUpdateTarget for table
§type WhereClause = <<table as AsQuery>::Query as IntoUpdateTarget>::WhereClause
type WhereClause = <<table as AsQuery>::Query as IntoUpdateTarget>::WhereClause
What is the
WHERE
clause of this target?§fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
Decomposes
self
into the table and where clause.§impl QueryId for table
impl QueryId for table
§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by
Self
be uniquely identified by its type? Read more§impl QuerySource for table
impl QuerySource for table
§type FromClause = Identifier<'static>
type FromClause = Identifier<'static>
The type returned by
from_clause
§type DefaultSelection = <table as Table>::AllColumns
type DefaultSelection = <table as Table>::AllColumns
The type returned by
default_selection
§fn from_clause(&self) -> Self::FromClause
fn from_clause(&self) -> Self::FromClause
The actual
FROM
clause of this type. This is typically only called in
QueryFragment
implementations.§fn default_selection(&self) -> Self::DefaultSelection
fn default_selection(&self) -> Self::DefaultSelection
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
§impl Table for table
impl Table for table
§type PrimaryKey = uuid
type PrimaryKey = uuid
The type returned by
primary_key
§type AllColumns = (uuid, updt, updu, ver, rstatus, path, teacher, support_orgs, support_users, comments, status, subject, description, submitted_at, log, year)
type AllColumns = (uuid, updt, updu, ver, rstatus, path, teacher, support_orgs, support_users, comments, status, subject, description, submitted_at, log, year)
The type returned by
all_columns
§fn primary_key(&self) -> Self::PrimaryKey
fn primary_key(&self) -> Self::PrimaryKey
Returns the primary key of this table. Read more
§fn all_columns() -> Self::AllColumns
fn all_columns() -> Self::AllColumns
Returns a tuple of all columns belonging to this table.
impl AppearsOnTable<table> for star
impl Copy for table
impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table
impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table
impl SelectableExpression<table> for comments
impl SelectableExpression<table> for description
impl SelectableExpression<table> for log
impl SelectableExpression<table> for path
impl SelectableExpression<table> for rstatus
impl SelectableExpression<table> for star
impl SelectableExpression<table> for status
impl SelectableExpression<table> for subject
impl SelectableExpression<table> for submitted_at
impl SelectableExpression<table> for support_orgs
impl SelectableExpression<table> for support_users
impl SelectableExpression<table> for teacher
impl SelectableExpression<table> for updt
impl SelectableExpression<table> for updu
impl SelectableExpression<table> for uuid
impl SelectableExpression<table> for ver
impl SelectableExpression<table> for year
impl<'insert> UndecoratedInsertRecord<table> for LessonFeedback
Auto Trait Implementations§
impl Freeze for table
impl RefUnwindSafe for table
impl Send for table
impl Sync for table
impl Unpin for table
impl UnwindSafe for table
Blanket Implementations§
Source§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
Source§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
Source§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
Source§type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
Source§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
Source§impl<T> ConvUtil for T
impl<T> ConvUtil for T
Source§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
Source§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>
Approximate the subject to a given type with a specific scheme.
Source§impl<T> DistinctDsl for T
impl<T> DistinctDsl for T
Source§impl<T> ForUpdateDsl for Twhere
T: LockingDsl<ForUpdate>,
impl<T> ForUpdateDsl for Twhere
T: LockingDsl<ForUpdate>,
Source§type Output = <T as LockingDsl<ForUpdate>>::Output
type Output = <T as LockingDsl<ForUpdate>>::Output
👎Deprecated since 1.3.0: use
LockingDsl<ForUpdate>
insteadThe type returned by
for_update
. See dsl::ForUpdate
for
convenient access to this type.Source§fn for_update(self) -> <T as ForUpdateDsl>::Output
fn for_update(self) -> <T as ForUpdateDsl>::Output
👎Deprecated since 1.3.0: use
LockingDsl<ForUpdate>
insteadSee the trait level documentation
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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::Expressionwhere
Self: Sized + AsExpression<T>,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: Sized + AsExpression<T>,
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read moreSource§impl<T> JoinOnDsl for Twhere
T: QuerySource,
impl<T> JoinOnDsl for Twhere
T: QuerySource,
Source§fn on<On>(self, on: On) -> OnClauseWrapper<Self, On>
fn on<On>(self, on: On) -> OnClauseWrapper<Self, On>
See the trait documentation.
Source§impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhswhere
Lhs: Table,
impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhswhere
Lhs: Table,
type FromClause = Rhs
type OnClause = On
fn join_target( rhs: OnClauseWrapper<Rhs, On>, ) -> (<Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::FromClause, <Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::OnClause)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> QueryDsl for Twhere
T: Table,
impl<T> QueryDsl for Twhere
T: Table,
Source§fn distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
Adds the
DISTINCT
keyword to a query. Read moreSource§fn distinct_on<Expr>(self, expr: Expr) -> Self::Outputwhere
Self: DistinctOnDsl<Expr>,
fn distinct_on<Expr>(self, expr: Expr) -> Self::Outputwhere
Self: DistinctOnDsl<Expr>,
Adds the
DISTINCT ON
clause to a query. Read moreSource§fn select<Selection>(self, selection: Selection) -> Self::Outputwhere
Selection: Expression,
Self: SelectDsl<Selection>,
fn select<Selection>(self, selection: Selection) -> Self::Outputwhere
Selection: Expression,
Self: SelectDsl<Selection>,
Adds a
SELECT
clause to the query. Read moreSource§fn count(self) -> Self::Output
fn count(self) -> Self::Output
Get the count of a query. This is equivalent to
.select(count_star())
Read moreSource§fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, Inner>,
fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, Inner>,
Join two tables using a SQL
INNER JOIN
. Read moreSource§fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
Join two tables using a SQL
LEFT OUTER JOIN
. Read moreSource§fn left_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
fn left_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
Alias for
left_outer_join
.Source§fn filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: FilterDsl<Predicate>,
fn filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: FilterDsl<Predicate>,
Adds to the
WHERE
clause of a query. Read moreSource§fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: OrFilterDsl<Predicate>,
fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: OrFilterDsl<Predicate>,
Source§fn find<PK>(self, id: PK) -> Self::Outputwhere
Self: FindDsl<PK>,
fn find<PK>(self, id: PK) -> Self::Outputwhere
Self: FindDsl<PK>,
Attempts to find a single record from the given table by primary key. Read more
Source§fn order<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
fn order<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
Sets the order clause of a query. Read more
Source§fn order_by<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
fn order_by<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
Alias for
order
Source§fn then_order_by<Order>(self, order: Order) -> Self::Outputwhere
Self: ThenOrderDsl<Order>,
fn then_order_by<Order>(self, order: Order) -> Self::Outputwhere
Self: ThenOrderDsl<Order>,
Appends to the
ORDER BY
clause of this SQL query. Read moreSource§fn limit(self, limit: i64) -> Self::Outputwhere
Self: LimitDsl,
fn limit(self, limit: i64) -> Self::Outputwhere
Self: LimitDsl,
Sets the limit clause of the query. Read more
Source§fn offset(self, offset: i64) -> Self::Outputwhere
Self: OffsetDsl,
fn offset(self, offset: i64) -> Self::Outputwhere
Self: OffsetDsl,
Sets the offset clause of the query. Read more
Source§fn for_update(self) -> Self::Outputwhere
Self: ForUpdateDsl,
fn for_update(self) -> Self::Outputwhere
Self: ForUpdateDsl,
Adds
FOR UPDATE
to the end of the select statement. Read moreSource§fn for_no_key_update(self) -> Self::Outputwhere
Self: LockingDsl<ForNoKeyUpdate>,
fn for_no_key_update(self) -> Self::Outputwhere
Self: LockingDsl<ForNoKeyUpdate>,
Adds
FOR NO KEY UPDATE
to the end of the select statement. Read moreAdds
FOR SHARE
to the end of the select statement. Read moreAdds
FOR KEY SHARE
to the end of the select statement. Read moreSource§fn skip_locked(self) -> Self::Outputwhere
Self: ModifyLockDsl<SkipLocked>,
fn skip_locked(self) -> Self::Outputwhere
Self: ModifyLockDsl<SkipLocked>,
Source§fn into_boxed<'a, DB>(self) -> Self::Output
fn into_boxed<'a, DB>(self) -> Self::Output
Boxes the pieces of a query into a single type. Read more
Source§fn single_value(self) -> Self::Outputwhere
Self: SingleValueDsl,
fn single_value(self) -> Self::Outputwhere
Self: SingleValueDsl,
Wraps this select statement in parenthesis, allowing it to be used
as an expression. Read more
Source§impl<T, Conn> RunQueryDsl<Conn> for Twhere
T: Table,
impl<T, Conn> RunQueryDsl<Conn> for Twhere
T: Table,
Source§fn execute(self, conn: &Conn) -> Result<usize, Error>where
Conn: Connection,
Self: ExecuteDsl<Conn>,
fn execute(self, conn: &Conn) -> Result<usize, Error>where
Conn: Connection,
Self: ExecuteDsl<Conn>,
Executes the given command, returning the number of rows affected. Read more
Source§fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error>where
Self: LoadQuery<Conn, U>,
fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error>where
Self: LoadQuery<Conn, U>,
Executes the given query, returning a
Vec
with the returned rows. Read moreSource§fn get_result<U>(self, conn: &Conn) -> Result<U, Error>where
Self: LoadQuery<Conn, U>,
fn get_result<U>(self, conn: &Conn) -> Result<U, Error>where
Self: LoadQuery<Conn, U>,
Runs the command, and returns the affected row. Read more
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.