Struct postgres_shared::types::Type [−][src]
pub struct Type(_);
A Postgres type.
Methods
impl Type
[src]
impl Type
pub 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) -> Oid
Returns the OID of the Type
.
pub fn kind(&self) -> &Kind
[src]
pub fn kind(&self) -> &Kind
Returns the kind of this type.
pub fn schema(&self) -> &str
[src]
pub fn schema(&self) -> &str
Returns the schema of this type.
pub fn name(&self) -> &str
[src]
pub fn name(&self) -> &str
Returns the name of this type.
Trait Implementations
impl PartialEq for Type
[src]
impl PartialEq for Type
fn eq(&self, other: &Type) -> bool
[src]
fn eq(&self, other: &Type) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for Type
[src]
impl Eq for Type
impl Clone for Type
[src]
impl Clone for Type
fn clone(&self) -> Type
[src]
fn clone(&self) -> Type
Returns 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 Type
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Type
[src]
impl Display for Type