Struct sqlx_core::postgres::PgTypeInfo
source · pub struct PgTypeInfo(_);
Expand description
Type information for a PostgreSQL type.
Implementations§
source§impl 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§
source§impl Clone for PgTypeInfo
impl Clone for PgTypeInfo
source§fn clone(&self) -> PgTypeInfo
fn clone(&self) -> PgTypeInfo
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 PgTypeInfo
impl Debug for PgTypeInfo
source§impl Deref for PgTypeInfo
impl Deref for PgTypeInfo
source§impl<'de> Deserialize<'de> for PgTypeInfo
impl<'de> Deserialize<'de> for PgTypeInfo
source§fn 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
source§impl Display for PgTypeInfo
impl Display for PgTypeInfo
source§impl From<PgTypeInfo> for AnyTypeInfo
impl From<PgTypeInfo> for AnyTypeInfo
source§fn from(ty: PgTypeInfo) -> Self
fn from(ty: PgTypeInfo) -> Self
Converts to this type from the input type.
source§impl PartialEq<PgTypeInfo> for PgTypeInfo
impl PartialEq<PgTypeInfo> for PgTypeInfo
source§fn 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 ==
.source§impl Serialize for PgTypeInfo
impl Serialize for PgTypeInfo
source§impl TypeInfo for PgTypeInfo
impl TypeInfo for PgTypeInfo
source§fn 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.