pub enum SqlMapping {
    As(String),
    Composite {
        array_brackets: bool,
    },
    Source {
        array_brackets: bool,
    },
    Skip,
}Expand description
Describes ways that Rust types are mapped into SQL
Variants§
As(String)
Explicit mappings provided by PGRX
Composite
Source
Some types are still directly from source
Skip
Placeholder for some types with no simple translation
Implementations§
source§impl SqlMapping
 
impl SqlMapping
pub fn literal(s: &'static str) -> SqlMapping
Trait Implementations§
source§impl Clone for SqlMapping
 
impl Clone for SqlMapping
source§fn clone(&self) -> SqlMapping
 
fn clone(&self) -> SqlMapping
Returns a copy 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 SqlMapping
 
impl Debug for SqlMapping
source§impl Hash for SqlMapping
 
impl Hash for SqlMapping
source§impl Ord for SqlMapping
 
impl Ord for SqlMapping
source§fn cmp(&self, other: &SqlMapping) -> Ordering
 
fn cmp(&self, other: &SqlMapping) -> 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 SqlMapping
 
impl PartialEq for SqlMapping
source§fn eq(&self, other: &SqlMapping) -> bool
 
fn eq(&self, other: &SqlMapping) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SqlMapping
 
impl PartialOrd for SqlMapping
source§fn partial_cmp(&self, other: &SqlMapping) -> Option<Ordering>
 
fn partial_cmp(&self, other: &SqlMapping) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Eq for SqlMapping
impl StructuralEq for SqlMapping
impl StructuralPartialEq for SqlMapping
Auto Trait Implementations§
impl RefUnwindSafe for SqlMapping
impl Send for SqlMapping
impl Sync for SqlMapping
impl Unpin for SqlMapping
impl UnwindSafe for SqlMapping
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
§impl<Q, K> Comparable<K> for Q
 
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.