Struct sqlx_core::postgres::PgTypeInfo
source · [−]pub struct PgTypeInfo(_);
Expand description
Type information for a PostgreSQL type.
Implementations
sourceimpl PgTypeInfo
impl PgTypeInfo
sourcepub fn kind(&self) -> &PgTypeKind
pub fn kind(&self) -> &PgTypeKind
Returns the kind (simple, array, enum, etc.) for this type.
Trait Implementations
sourceimpl Clone for PgTypeInfo
impl Clone for PgTypeInfo
sourcefn clone(&self) -> PgTypeInfo
fn clone(&self) -> PgTypeInfo
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 PgTypeInfo
impl Debug for PgTypeInfo
sourceimpl Deref for PgTypeInfo
impl Deref for PgTypeInfo
sourceimpl<'de> Deserialize<'de> for PgTypeInfo
impl<'de> Deserialize<'de> for PgTypeInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for PgTypeInfo
impl Display for PgTypeInfo
sourceimpl From<PgTypeInfo> for AnyTypeInfo
impl From<PgTypeInfo> for AnyTypeInfo
sourcefn from(ty: PgTypeInfo) -> Self
fn from(ty: PgTypeInfo) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PgTypeInfo> for PgTypeInfo
impl PartialEq<PgTypeInfo> for PgTypeInfo
sourcefn eq(&self, other: &PgTypeInfo) -> bool
fn eq(&self, other: &PgTypeInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PgTypeInfo) -> bool
fn ne(&self, other: &PgTypeInfo) -> bool
This method tests for !=
.
sourceimpl Serialize for PgTypeInfo
impl Serialize for PgTypeInfo
sourceimpl TypeInfo for PgTypeInfo
impl TypeInfo for PgTypeInfo
sourcefn name(&self) -> &str
fn name(&self) -> &str
Returns the database system name of the type. Length specifiers should not be included.
Common type names are VARCHAR
, TEXT
, or INT
. Type names should be uppercase. They
should be a rough approximation of how they are written in SQL in the given database. Read more
fn is_null(&self) -> bool
impl StructuralPartialEq for PgTypeInfo
Auto Trait Implementations
impl RefUnwindSafe for PgTypeInfo
impl Send for PgTypeInfo
impl Sync for PgTypeInfo
impl Unpin for PgTypeInfo
impl UnwindSafe for PgTypeInfo
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> 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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more