pub struct PgRange {
pub rngtypid: SmolStr,
pub rngsubtype: SmolStr,
pub rngmultitypid: SmolStr,
pub rngcollation: Option<SmolStr>,
pub rngsubopc: SmolStr,
pub rngcanonical: Option<SmolStr>,
pub rngsubdiff: Option<SmolStr>,
}Expand description
The DDL-only contents of pg_range
Fields§
§rngtypid: SmolStroid (references pg_type.oid) OID of the range type
rngsubtype: SmolStroid (references pg_type.oid) OID of the element type (subtype) of this range type
rngmultitypid: SmolStroid (references pg_type.oid) OID of the multirange type for this range type
rngcollation: Option<SmolStr>oid (references pg_collation.oid) OID of the collation used for range comparisons, or zero if none
rngsubopc: SmolStroid (references pg_opclass.oid) OID of the subtype’s operator class used for range comparisons
rngcanonical: Option<SmolStr>regproc (references pg_proc.oid) OID of the function to convert a range value into canonical form, or zero if none
rngsubdiff: Option<SmolStr>regproc (references pg_proc.oid) OID of the function to return the difference between two element values as double precision, or zero if none
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PgRange
impl<'de> Deserialize<'de> for PgRange
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgRange, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for PgRange
impl Serialize for PgRange
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PgRange
impl StructuralPartialEq for PgRange
Auto Trait Implementations§
impl Freeze for PgRange
impl RefUnwindSafe for PgRange
impl Send for PgRange
impl Sync for PgRange
impl Unpin for PgRange
impl UnsafeUnpin for PgRange
impl UnwindSafe for PgRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.