Struct postgres_shared::types::Type [−][src]
pub struct Type(_);
A Postgres type.
Methods
impl Type[src]
impl Typepub fn from_oid(oid: Oid) -> Option<Type>[src]
pub fn from_oid(oid: Oid) -> Option<Type>Returns the Type corresponding to the provided Oid if it
corresponds to a built-in type.
pub fn oid(&self) -> Oid[src]
pub fn oid(&self) -> OidReturns the OID of the Type.
pub fn kind(&self) -> &Kind[src]
pub fn kind(&self) -> &KindReturns the kind of this type.
pub fn schema(&self) -> &str[src]
pub fn schema(&self) -> &strReturns the schema of this type.
pub fn name(&self) -> &str[src]
pub fn name(&self) -> &strReturns the name of this type.
Trait Implementations
impl PartialEq for Type[src]
impl PartialEq for Typefn eq(&self, other: &Type) -> bool[src]
fn eq(&self, other: &Type) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Type) -> bool[src]
fn ne(&self, other: &Type) -> boolThis method tests for !=.
impl Eq for Type[src]
impl Eq for Typeimpl Clone for Type[src]
impl Clone for Typefn clone(&self) -> Type[src]
fn clone(&self) -> TypeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Type[src]
impl Debug for Typefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for Type[src]
impl Display for Type