pub struct TypeId(pub Oid);Expand description
A type, by its OID in pg_type of the PostgreSQL pin.
Tuple Fields§
§0: OidImplementations§
Source§impl TypeId
impl TypeId
Sourcepub const TIMESTAMPTZ: TypeId
pub const TIMESTAMPTZ: TypeId
timestamptz.
Sourcepub const M1: [TypeId; 13]
pub const M1: [TypeId; 13]
The types that M1 stores. Later milestones add the other types of the pin.
Sourcepub fn from_oid(oid: Oid) -> Option<TypeId>
pub fn from_oid(oid: Oid) -> Option<TypeId>
The type with this OID, or None if M1 does not store it.
Trait Implementations§
impl Copy for TypeId
impl Eq for TypeId
Source§impl Ord for TypeId
impl Ord for TypeId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for TypeId
impl PartialOrd for TypeId
impl StructuralPartialEq for TypeId
Auto Trait Implementations§
impl Freeze for TypeId
impl RefUnwindSafe for TypeId
impl Send for TypeId
impl Sync for TypeId
impl Unpin for TypeId
impl UnsafeUnpin for TypeId
impl UnwindSafe for TypeId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more