pub enum Bound {
Show 25 variants
Null,
Bool(bool),
I16(i16),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
Text(String),
Uuid(Uuid),
Timestamptz(DateTime<Utc>),
Timestamp(NaiveDateTime),
Date(NaiveDate),
Time(NaiveTime),
Json(Value),
Numeric(PgNumeric),
Bytes(Vec<u8>),
TextArray(Vec<Option<String>>),
UuidArray(Vec<Option<Uuid>>),
I16Array(Vec<Option<i16>>),
I32Array(Vec<Option<i32>>),
I64Array(Vec<Option<i64>>),
BoolArray(Vec<Option<bool>>),
F64Array(Vec<Option<f64>>),
NumericArray(Vec<Option<PgNumeric>>),
JsonArray(Vec<Option<Value>>),
}Variants§
Null
Bool(bool)
I16(i16)
I32(i32)
I64(i64)
F32(f32)
F64(f64)
Text(String)
Sent as its text bytes: text-like types, enum labels, unknown.
Uuid(Uuid)
Timestamptz(DateTime<Utc>)
Timestamp(NaiveDateTime)
Date(NaiveDate)
Time(NaiveTime)
Json(Value)
Numeric(PgNumeric)
Bytes(Vec<u8>)
TextArray(Vec<Option<String>>)
UuidArray(Vec<Option<Uuid>>)
I16Array(Vec<Option<i16>>)
I32Array(Vec<Option<i32>>)
I64Array(Vec<Option<i64>>)
BoolArray(Vec<Option<bool>>)
F64Array(Vec<Option<f64>>)
NumericArray(Vec<Option<PgNumeric>>)
JsonArray(Vec<Option<Value>>)
Trait Implementations§
impl StructuralPartialEq for Bound
Source§impl ToSql for Bound
Every value is encoded as its type’s base: a domain is received by its
base type’s input function, and an array of domains carries the domain in
its header but base-encoded elements.
impl ToSql for Bound
Every value is encoded as its type’s base: a domain is received by its base type’s input function, and an array of domains carries the domain in its header but base-encoded elements.
Source§fn to_sql(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql( &self, ty: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
Converts the value of
self into the binary format of the specified
Postgres Type, appending it to out. Read moreSource§fn accepts(_: &Type) -> bool
fn accepts(_: &Type) -> bool
Determines if a value of this type can be converted to the specified
Postgres
Type.Source§fn to_sql_checked(
&self,
ty: &Type,
out: &mut BytesMut,
) -> Result<IsNull, Box<dyn Error + Sync + Send>>
fn to_sql_checked( &self, ty: &Type, out: &mut BytesMut, ) -> Result<IsNull, Box<dyn Error + Sync + Send>>
An adaptor method used internally by Rust-Postgres. Read more
Source§fn encode_format(&self, _ty: &Type) -> Format
fn encode_format(&self, _ty: &Type) -> Format
Specify the encode format
Auto Trait Implementations§
impl Freeze for Bound
impl RefUnwindSafe for Bound
impl Send for Bound
impl Sync for Bound
impl Unpin for Bound
impl UnsafeUnpin for Bound
impl UnwindSafe for Bound
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> BorrowToSql for Twhere
T: ToSql,
impl<T> BorrowToSql for Twhere
T: ToSql,
Source§fn borrow_to_sql(&self) -> &dyn ToSql
fn borrow_to_sql(&self) -> &dyn ToSql
Returns a reference to
self as a ToSql trait object.