Enum convergence::protocol::DataTypeOid
source · pub enum DataTypeOid {
Unspecified,
Bool,
Int2,
Int4,
Int8,
Float4,
Float8,
Date,
Timestamp,
Text,
Unknown(u32),
}
Expand description
Describes a Postgres data type.
Variants§
Unspecified
Bool
Int2
Int4
Int8
Float4
Float8
Date
Timestamp
Text
Unknown(u32)
A type which is not known to this crate.
Implementations§
source§impl DataTypeOid
impl DataTypeOid
sourcepub fn size_bytes(&self) -> i16
pub fn size_bytes(&self) -> i16
Fetch the size in bytes for this data type. Variably-sized types return -1.
Trait Implementations§
source§impl Clone for DataTypeOid
impl Clone for DataTypeOid
source§fn clone(&self) -> DataTypeOid
fn clone(&self) -> DataTypeOid
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DataTypeOid
impl Debug for DataTypeOid
source§impl From<DataTypeOid> for u32
impl From<DataTypeOid> for u32
source§fn from(value: DataTypeOid) -> Self
fn from(value: DataTypeOid) -> Self
Converts to this type from the input type.