Struct pgx_utils::sql_entity_graph::RustSqlMapping
source · [−]Expand description
A mapping from a Rust type to a SQL type, with a TypeId
.
use pgx_utils::sql_entity_graph::RustSqlMapping;
let constructed = RustSqlMapping::of::<i32>(String::from("int"));
let raw = RustSqlMapping {
rust: core::any::type_name::<i32>().to_string(),
sql: String::from("int"),
id: core::any::TypeId::of::<i32>(),
};
assert_eq!(constructed, raw);
Fields
rust: String
sql: String
id: TypeId
Implementations
sourceimpl RustSqlMapping
impl RustSqlMapping
Trait Implementations
sourceimpl Clone for RustSqlMapping
impl Clone for RustSqlMapping
sourcefn clone(&self) -> RustSqlMapping
fn clone(&self) -> RustSqlMapping
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RustSqlMapping
impl Debug for RustSqlMapping
sourceimpl Hash for RustSqlMapping
impl Hash for RustSqlMapping
sourceimpl Ord for RustSqlMapping
impl Ord for RustSqlMapping
sourcefn cmp(&self, other: &RustSqlMapping) -> Ordering
fn cmp(&self, other: &RustSqlMapping) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<RustSqlMapping> for RustSqlMapping
impl PartialEq<RustSqlMapping> for RustSqlMapping
sourcefn eq(&self, other: &RustSqlMapping) -> bool
fn eq(&self, other: &RustSqlMapping) -> bool
sourceimpl PartialOrd<RustSqlMapping> for RustSqlMapping
impl PartialOrd<RustSqlMapping> for RustSqlMapping
sourcefn partial_cmp(&self, other: &RustSqlMapping) -> Option<Ordering>
fn partial_cmp(&self, other: &RustSqlMapping) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 RustSqlMapping
impl StructuralEq for RustSqlMapping
impl StructuralPartialEq for RustSqlMapping
Auto Trait Implementations
impl RefUnwindSafe for RustSqlMapping
impl Send for RustSqlMapping
impl Sync for RustSqlMapping
impl Unpin for RustSqlMapping
impl UnwindSafe for RustSqlMapping
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.