pub struct RustSourceOnlySqlMapping {
pub rust: String,
pub sql: String,
}
Expand description
A mapping from a Rust source fragment to a SQL type, typically for type aliases.
In general, this can only offer a fuzzy matching, as it does not use core::any::TypeId
.
use pgx_utils::sql_entity_graph::RustSourceOnlySqlMapping;
let constructed = RustSourceOnlySqlMapping::new(
String::from("Oid"),
String::from("int"),
);
Fields§
§rust: String
§sql: String
Implementations§
Trait Implementations§
Source§impl Clone for RustSourceOnlySqlMapping
impl Clone for RustSourceOnlySqlMapping
Source§fn clone(&self) -> RustSourceOnlySqlMapping
fn clone(&self) -> RustSourceOnlySqlMapping
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RustSourceOnlySqlMapping
impl Debug for RustSourceOnlySqlMapping
Source§impl Hash for RustSourceOnlySqlMapping
impl Hash for RustSourceOnlySqlMapping
Source§impl Ord for RustSourceOnlySqlMapping
impl Ord for RustSourceOnlySqlMapping
Source§fn cmp(&self, other: &RustSourceOnlySqlMapping) -> Ordering
fn cmp(&self, other: &RustSourceOnlySqlMapping) -> 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 RustSourceOnlySqlMapping
impl PartialEq for RustSourceOnlySqlMapping
Source§impl PartialOrd for RustSourceOnlySqlMapping
impl PartialOrd for RustSourceOnlySqlMapping
impl Eq for RustSourceOnlySqlMapping
impl StructuralPartialEq for RustSourceOnlySqlMapping
Auto Trait Implementations§
impl Freeze for RustSourceOnlySqlMapping
impl RefUnwindSafe for RustSourceOnlySqlMapping
impl Send for RustSourceOnlySqlMapping
impl Sync for RustSourceOnlySqlMapping
impl Unpin for RustSourceOnlySqlMapping
impl UnwindSafe for RustSourceOnlySqlMapping
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.