[−][src]Struct investments::db::schema::currency_rates::table
The actual table struct
This is the type which provides the base methods of the query
builder, such as .select
and .filter
.
Implementations
impl table
[src]
pub fn star(&self) -> star
[src]
Represents table_name.*
, which is sometimes necessary
for efficient count queries. It cannot be used in place of
all_columns
Trait Implementations
impl AppearsInFromClause<table> for table
[src]
impl AppearsOnTable<table> for star
[src]
impl AsQuery for table
[src]
type SqlType = SqlType
The SQL type of Self::Query
type Query = SelectStatement<Self>
What kind of query does this type represent?
pub fn as_query(self) -> Self::Query
[src]
impl Clone for table
[src]
impl Copy for table
[src]
impl Debug for table
[src]
impl HasTable for table
[src]
impl<T> Insertable<T> for table where
<table as AsQuery>::Query: Insertable<T>,
[src]
<table as AsQuery>::Query: Insertable<T>,
type Values = <<table as AsQuery>::Query as Insertable<T>>::Values
The VALUES
clause to insert these records Read more
pub fn values(self) -> Self::Values
[src]
pub fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl<'a, T> Insertable<T> for &'a table where
table: Insertable<T>,
[src]
table: Insertable<T>,
type Values = <table as Insertable<T>>::Values
The VALUES
clause to insert these records Read more
pub fn values(self) -> Self::Values
[src]
pub fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl<'a, 'insert> Insertable<table> for NewCurrencyRate<'a>
[src]
type Values = <(Option<Eq<currency, &'a str>>, Option<Eq<date, Date>>, Option<Eq<price, String>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
pub fn values(self) -> Self::Values
[src]
pub fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl<'a, 'insert> Insertable<table> for &'insert NewCurrencyRate<'a>
[src]
type Values = <(Option<Eq<currency, &'insert &'a str>>, Option<Eq<date, &'insert Date>>, Option<Eq<price, &'insert String>>) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
pub fn values(self) -> Self::Values
[src]
pub fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl IntoUpdateTarget for table
[src]
type WhereClause = <Self::Query as IntoUpdateTarget>::WhereClause
What is the WHERE
clause of this target?
pub fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
[src]
impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>,
[src]
BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>,
type FromClause = BoxedSelectStatement<'a, QS, ST, DB>
type OnClause = <BoxedSelectStatement<'a, QS, ST, DB> as JoinTo<table>>::OnClause
pub 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]
Join<Left, Right, Kind>: JoinTo<table>,
type FromClause = Join<Left, Right, Kind>
type OnClause = <Join<Left, Right, Kind> as JoinTo<table>>::OnClause
pub 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]
JoinOn<Join, On>: JoinTo<table>,
type FromClause = JoinOn<Join, On>
type OnClause = <JoinOn<Join, On> as JoinTo<table>>::OnClause
pub 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]
SelectStatement<F, S, D, W, O, L, Of, G>: JoinTo<table>,
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
pub 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]
type QueryId = table
A type which uniquely represents Self
in a SQL query. Read more
pub const HAS_STATIC_QUERY_ID: bool
[src]
pub fn query_id() -> Option<TypeId>
[src]
impl QuerySource for table
[src]
type FromClause = Identifier<'static>
The type returned by from_clause
type DefaultSelection = Self::AllColumns
The type returned by default_selection
pub fn from_clause(&self) -> Self::FromClause
[src]
pub fn default_selection(&self) -> Self::DefaultSelection
[src]
impl SelectableExpression<table> for star
[src]
impl SelectableExpression<table> for currency
[src]
impl SelectableExpression<table> for date
[src]
impl SelectableExpression<table> for price
[src]
impl Table for table
[src]
type PrimaryKey = (currency, date)
The type returned by primary_key
type AllColumns = (currency, date, price)
The type returned by all_columns
pub fn primary_key(&self) -> Self::PrimaryKey
[src]
pub fn all_columns() -> Self::AllColumns
[src]
impl<'a, 'insert> UndecoratedInsertRecord<table> for NewCurrencyRate<'a>
[src]
Auto Trait Implementations
impl RefUnwindSafe for table
[src]
impl Send for table
[src]
impl Sync for table
[src]
impl Unpin for table
[src]
impl UnwindSafe for table
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> ForUpdateDsl for T where
T: LockingDsl<ForUpdate>,
[src]
T: LockingDsl<ForUpdate>,
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]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
[src]
pub fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
[src]
Self: AsExpression<T>,
pub fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
[src]
&'a Self: AsExpression<T>,
impl<T> JoinOnDsl for T where
T: QuerySource,
[src]
T: QuerySource,
impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhs where
Lhs: Table,
[src]
Lhs: Table,
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> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> QueryDsl for T where
T: Table,
[src]
T: Table,
pub fn distinct(self) -> Self::Output where
Self: DistinctDsl,
[src]
Self: DistinctDsl,
pub fn select<Selection>(self, selection: Selection) -> Self::Output where
Self: SelectDsl<Selection>,
Selection: Expression,
[src]
Self: SelectDsl<Selection>,
Selection: Expression,
pub fn count(self) -> Self::Output where
Self: SelectDsl<CountStar>,
[src]
Self: SelectDsl<CountStar>,
pub fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, Inner>,
[src]
Self: JoinWithImplicitOnClause<Rhs, Inner>,
pub fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
[src]
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
pub fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
[src]
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
pub fn filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: FilterDsl<Predicate>,
[src]
Self: FilterDsl<Predicate>,
pub fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: OrFilterDsl<Predicate>,
[src]
Self: OrFilterDsl<Predicate>,
pub fn find<PK>(self, id: PK) -> Self::Output where
Self: FindDsl<PK>,
[src]
Self: FindDsl<PK>,
pub fn order<Expr>(self, expr: Expr) -> Self::Output where
Self: OrderDsl<Expr>,
Expr: Expression,
[src]
Self: OrderDsl<Expr>,
Expr: Expression,
pub fn order_by<Expr>(self, expr: Expr) -> Self::Output where
Self: OrderDsl<Expr>,
Expr: Expression,
[src]
Self: OrderDsl<Expr>,
Expr: Expression,
pub fn then_order_by<Order>(self, order: Order) -> Self::Output where
Self: ThenOrderDsl<Order>,
[src]
Self: ThenOrderDsl<Order>,
pub fn limit(self, limit: i64) -> Self::Output where
Self: LimitDsl,
[src]
Self: LimitDsl,
pub fn offset(self, offset: i64) -> Self::Output where
Self: OffsetDsl,
[src]
Self: OffsetDsl,
pub fn for_update(self) -> Self::Output where
Self: ForUpdateDsl,
[src]
Self: ForUpdateDsl,
pub fn for_no_key_update(self) -> Self::Output where
Self: LockingDsl<ForNoKeyUpdate>,
[src]
Self: LockingDsl<ForNoKeyUpdate>,
pub fn for_share(self) -> Self::Output where
Self: LockingDsl<ForShare>,
[src]
Self: LockingDsl<ForShare>,
pub fn for_key_share(self) -> Self::Output where
Self: LockingDsl<ForKeyShare>,
[src]
Self: LockingDsl<ForKeyShare>,
pub fn skip_locked(self) -> Self::Output where
Self: ModifyLockDsl<SkipLocked>,
[src]
Self: ModifyLockDsl<SkipLocked>,
pub fn no_wait(self) -> Self::Output where
Self: ModifyLockDsl<NoWait>,
[src]
Self: ModifyLockDsl<NoWait>,
pub fn into_boxed<'a, DB>(self) -> Self::Output where
Self: BoxedDsl<'a, DB>,
DB: Backend,
[src]
Self: BoxedDsl<'a, DB>,
DB: Backend,
pub fn single_value(self) -> Self::Output where
Self: SingleValueDsl,
[src]
Self: SingleValueDsl,
pub fn nullable(self) -> Self::Output where
Self: SelectNullableDsl,
[src]
Self: SelectNullableDsl,
impl<T, Conn> RunQueryDsl<Conn> for T where
T: Table,
[src]
T: Table,
pub fn execute(self, conn: &Conn) -> Result<usize, Error> where
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
Conn: Connection,
[src]
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
Conn: Connection,
pub fn load<U>(self, conn: &Conn) -> Result<Vec<U, Global>, Error> where
Self: LoadQuery<Conn, U>,
[src]
Self: LoadQuery<Conn, U>,
pub fn get_result<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LoadQuery<Conn, U>,
[src]
Self: LoadQuery<Conn, U>,
pub fn get_results<U>(self, conn: &Conn) -> Result<Vec<U, Global>, Error> where
Self: LoadQuery<Conn, U>,
[src]
Self: LoadQuery<Conn, U>,
pub fn first<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>,
[src]
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,