pub struct Interval;Expand description
The interval SQL type.
This type is currently only implemented for PostgreSQL.
§ToSql impls
PgIntervalwhich can be constructed usingIntervalDsl
§FromSql impls
PgIntervalwhich can be constructed usingIntervalDsl
Trait Implementations§
Source§impl<'expr2, 'expr> AsExpression<Interval> for &'expr2 &'expr PgInterval
impl<'expr2, 'expr> AsExpression<Interval> for &'expr2 &'expr PgInterval
Source§type Expression = Bound<Interval, &'expr2 &'expr PgInterval>
type Expression = Bound<Interval, &'expr2 &'expr PgInterval>
The expression being returned
Source§fn as_expression(
self,
) -> <&'expr2 &'expr PgInterval as AsExpression<Interval>>::Expression
fn as_expression( self, ) -> <&'expr2 &'expr PgInterval as AsExpression<Interval>>::Expression
Perform the conversion
Source§impl<'expr> AsExpression<Interval> for &'expr PgInterval
impl<'expr> AsExpression<Interval> for &'expr PgInterval
Source§type Expression = Bound<Interval, &'expr PgInterval>
type Expression = Bound<Interval, &'expr PgInterval>
The expression being returned
Source§fn as_expression(
self,
) -> <&'expr PgInterval as AsExpression<Interval>>::Expression
fn as_expression( self, ) -> <&'expr PgInterval as AsExpression<Interval>>::Expression
Perform the conversion
Source§impl AsExpression<Interval> for PgInterval
impl AsExpression<Interval> for PgInterval
Source§type Expression = Bound<Interval, PgInterval>
type Expression = Bound<Interval, PgInterval>
The expression being returned
Source§fn as_expression(self) -> <PgInterval as AsExpression<Interval>>::Expression
fn as_expression(self) -> <PgInterval as AsExpression<Interval>>::Expression
Perform the conversion
Source§impl HasSqlType<Interval> for Pg
impl HasSqlType<Interval> for Pg
Source§fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
fn metadata(_: &PgMetadataLookup) -> PgTypeMetadata
Fetch the metadata for the given type Read more
Source§impl QueryId for Interval
impl QueryId for Interval
Source§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 moreimpl Copy for Interval
impl NotNull for Interval
impl SingleValue for Interval
impl SqlOrd for Interval
Auto Trait Implementations§
impl Freeze for Interval
impl RefUnwindSafe for Interval
impl Send for Interval
impl Sync for Interval
impl Unpin for Interval
impl UnwindSafe for Interval
Blanket Implementations§
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> 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> 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> IntoNullable for Twhere
T: NotNull,
impl<T> IntoNullable for Twhere
T: NotNull,
Source§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 more