pub struct PgType {
pub oid: Oid,
pub typmod: i32,
}Expand description
The PostgreSQL type of a value: the OID that RowDescription and ParameterDescription send, and the typmod. A typmod of -1 means that the type has no modifier. rupg carries it beside its own crate::TypeId (spec/07 section 7.9).
Fields§
§oid: Oid§typmod: i32Implementations§
Trait Implementations§
impl Copy for PgType
impl Eq for PgType
impl StructuralPartialEq for PgType
Auto Trait Implementations§
impl Freeze for PgType
impl RefUnwindSafe for PgType
impl Send for PgType
impl Sync for PgType
impl Unpin for PgType
impl UnsafeUnpin for PgType
impl UnwindSafe for PgType
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