Struct diesel::pg::PgTypeMetadata[][src]

#[must_use]pub struct PgTypeMetadata(_);

The OIDs for a SQL type

Implementations

impl PgTypeMetadata[src]

pub fn new(type_oid: u32, array_oid: u32) -> Self[src]

Create a new instance of this type based on known constant OIDs.

Please refer to PgMetadataLookup for a way to query OIDs of custom types at run time

pub fn oid(&self) -> Result<u32, impl Error + Send + Sync>[src]

The OID of T

pub fn array_oid(&self) -> Result<u32, impl Error + Send + Sync>[src]

The OID of T[]

Trait Implementations

impl Clone for PgTypeMetadata[src]

impl Debug for PgTypeMetadata[src]

impl Eq for PgTypeMetadata[src]

impl Hash for PgTypeMetadata[src]

impl PartialEq<PgTypeMetadata> for PgTypeMetadata[src]

impl StructuralEq for PgTypeMetadata[src]

impl StructuralPartialEq for PgTypeMetadata[src]

Auto Trait Implementations

impl RefUnwindSafe for PgTypeMetadata

impl Send for PgTypeMetadata

impl Sync for PgTypeMetadata

impl Unpin for PgTypeMetadata

impl UnwindSafe for PgTypeMetadata

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoSql for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]