Enum pgx_utils::sql_entity_graph::metadata::SqlMapping
source · 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 PGX
Composite
Fields
array_brackets: boolSource
Fields
array_brackets: boolSome types are still directly from source
Skip
Placeholder for some types with no simple translation
Implementations
sourceimpl SqlMapping
impl SqlMapping
pub fn literal(s: &'static str) -> SqlMapping
Trait Implementations
sourceimpl Clone for SqlMapping
impl Clone for SqlMapping
sourcefn clone(&self) -> SqlMapping
fn clone(&self) -> SqlMapping
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SqlMapping
impl Debug for SqlMapping
sourceimpl Hash for SqlMapping
impl Hash for SqlMapping
sourceimpl Ord for SqlMapping
impl Ord for SqlMapping
sourcefn cmp(&self, other: &SqlMapping) -> Ordering
fn cmp(&self, other: &SqlMapping) -> Ordering
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SqlMapping> for SqlMapping
impl PartialEq<SqlMapping> for SqlMapping
sourcefn eq(&self, other: &SqlMapping) -> bool
fn eq(&self, other: &SqlMapping) -> bool
sourceimpl PartialOrd<SqlMapping> for SqlMapping
impl PartialOrd<SqlMapping> for SqlMapping
sourcefn partial_cmp(&self, other: &SqlMapping) -> Option<Ordering>
fn partial_cmp(&self, other: &SqlMapping) -> Option<Ordering>
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.