pub enum SqlMappingRef {
As(&'static str),
Numeric {
precision: Option<u32>,
scale: Option<u32>,
},
Composite,
Array(SqlArrayMappingRef),
Skip,
}Expand description
Const-friendly SQL mapping metadata.
Variants§
As(&'static str)
Explicit mappings provided by PGRX
Numeric
Composite
Array(SqlArrayMappingRef)
Skip
A type which does not actually appear in SQL
Implementations§
Trait Implementations§
Source§impl Clone for SqlMappingRef
impl Clone for SqlMappingRef
Source§fn clone(&self) -> SqlMappingRef
fn clone(&self) -> SqlMappingRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqlMappingRef
impl Debug for SqlMappingRef
Source§impl From<SqlMappingRef> for SqlMapping
impl From<SqlMappingRef> for SqlMapping
Source§fn from(value: SqlMappingRef) -> Self
fn from(value: SqlMappingRef) -> Self
Converts to this type from the input type.
Source§impl Hash for SqlMappingRef
impl Hash for SqlMappingRef
Source§impl Ord for SqlMappingRef
impl Ord for SqlMappingRef
Source§fn cmp(&self, other: &SqlMappingRef) -> Ordering
fn cmp(&self, other: &SqlMappingRef) -> Ordering
1.21.0 · 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
Source§impl PartialEq for SqlMappingRef
impl PartialEq for SqlMappingRef
Source§impl PartialOrd for SqlMappingRef
impl PartialOrd for SqlMappingRef
impl Copy for SqlMappingRef
impl Eq for SqlMappingRef
impl StructuralPartialEq for SqlMappingRef
Auto Trait Implementations§
impl Freeze for SqlMappingRef
impl RefUnwindSafe for SqlMappingRef
impl Send for SqlMappingRef
impl Sync for SqlMappingRef
impl Unpin for SqlMappingRef
impl UnsafeUnpin for SqlMappingRef
impl UnwindSafe for SqlMappingRef
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.