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.
source§impl From<u32> for DataTypeOid
impl From<u32> for DataTypeOid
impl Copy for DataTypeOid
Auto Trait Implementations§
impl RefUnwindSafe for DataTypeOid
impl Send for DataTypeOid
impl Sync for DataTypeOid
impl Unpin for DataTypeOid
impl UnwindSafe for DataTypeOid
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