pub enum SqlMapping {
As(String),
Composite {
array_brackets: bool,
},
Skip,
}
Expand description
Describes ways that Rust types are mapped into SQL
Variants§
As(String)
Explicit mappings provided by PGRX
Composite
Skip
A type which does not actually appear in SQL
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§impl PartialOrd for SqlMapping
impl PartialOrd for SqlMapping
impl Eq for SqlMapping
impl StructuralPartialEq for SqlMapping
Auto Trait Implementations§
impl Freeze for SqlMapping
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
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.