pub enum CastValue {
Boolean(bool),
Smallint(i16),
Integer(i32),
Bigint(i64),
Numeric(PgNumeric),
Text(String),
Bpchar(String),
Date(PgDate),
Timestamp(PgTimestamp),
TimestampTz(PgTimestampTz),
}Expand description
The value a cast produces, printed by Display as the type’s output function
prints it under the default DateStyle of ISO.
Variants§
Boolean(bool)
A boolean, printed t or f.
Smallint(i16)
A smallint.
Integer(i32)
An integer.
Bigint(i64)
A bigint.
Numeric(PgNumeric)
A numeric.
Text(String)
A text or varchar.
Bpchar(String)
A char(n), blank-padded to its length as PostgreSQL holds it. PostgreSQL drops the
trailing blanks when it compares it with text or casts it to text.
Date(PgDate)
A date.
Timestamp(PgTimestamp)
A timestamp.
TimestampTz(PgTimestampTz)
A timestamptz, printed as under TimeZone UTC.
Trait Implementations§
impl Eq for CastValue
impl StructuralPartialEq for CastValue
Auto Trait Implementations§
impl Forget for CastValue
impl Freeze for CastValue
impl RefUnwindSafe for CastValue
impl Send for CastValue
impl Sync for CastValue
impl Unpin for CastValue
impl UnsafeUnpin for CastValue
impl UnwindSafe for CastValue
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