pub enum CastValue {
Boolean(bool),
Smallint(i16),
Integer(i32),
Bigint(i64),
Numeric(PgNumeric),
Text(String),
Bpchar(PgBpchar<'static>),
Date(PgDate),
Timestamp(PgTimestamp),
TimestampTz(PgTimestampTz),
Jsonb(PgJsonb),
}Expand description
The value a cast produces or takes, 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(PgBpchar<'static>)
A char(n), blank-padded to its length as PostgreSQL holds it, equal to another as
PostgreSQL finds it, ignoring trailing blanks.
Date(PgDate)
A date.
Timestamp(PgTimestamp)
A timestamp.
TimestampTz(PgTimestampTz)
A timestamptz, printed as under TimeZone UTC.
Jsonb(PgJsonb)
A jsonb.
Trait Implementations§
impl Eq for CastValue
impl StructuralPartialEq for CastValue
Auto Trait Implementations§
impl Forget for CastValue
impl Freeze for CastValue
impl Move 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