Enum convergence::protocol::DataTypeOid
source · [−]pub enum DataTypeOid {
Unspecified,
Int2,
Int4,
Int8,
Float4,
Float8,
Date,
Timestamp,
Text,
Unknown(u32),
}
Expand description
Describes a Postgres data type.
Variants
Unspecified
Int2
Int4
Int8
Float4
Float8
Date
Timestamp
Text
Unknown(u32)
A type which is not known to this crate.
Implementations
sourceimpl 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
sourceimpl Clone for DataTypeOid
impl Clone for DataTypeOid
sourcefn clone(&self) -> DataTypeOid
fn clone(&self) -> DataTypeOid
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DataTypeOid
impl Debug for DataTypeOid
sourceimpl From<DataTypeOid> for u32
impl From<DataTypeOid> for u32
sourcefn from(value: DataTypeOid) -> Self
fn from(value: DataTypeOid) -> Self
Converts to this type from the input type.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more