Type Alias elephantry::pq::Type
source · pub type Type = Type;
Aliased Type§
struct Type {
pub oid: u32,
pub descr: &'static str,
pub name: &'static str,
pub kind: Kind,
}
Fields§
§oid: u32
§descr: &'static str
§name: &'static str
§kind: Kind
Trait Implementations§
source§impl FromSql for Type
impl FromSql for Type
source§fn from_binary(ty: &Type, raw: Option<&[u8]>) -> Result<Self>
fn from_binary(ty: &Type, raw: Option<&[u8]>) -> Result<Self>
Create a new struct from the binary representation. Read more
source§fn from_text(ty: &Type, raw: Option<&str>) -> Result<Self>
fn from_text(ty: &Type, raw: Option<&str>) -> Result<Self>
Create a new struct from the text representation. Read more
source§fn from_sql(ty: &Type, format: Format, raw: Option<&[u8]>) -> Result<Self>
fn from_sql(ty: &Type, format: Format, raw: Option<&[u8]>) -> Result<Self>
Create a new struct from SQL value.