pub struct DataRepresentation {
pub source_type: CompactString,
pub target_type: CompactString,
pub function: CompactString,
}Expand description
A data representation mapping function
Maps from one database type to another via a PostgreSQL function. Used for custom type casting in content negotiation.
Fields§
§source_type: CompactStringSource PostgreSQL type name
target_type: CompactStringTarget PostgreSQL type name
function: CompactStringPostgreSQL function that performs the conversion
Trait Implementations§
Source§impl Clone for DataRepresentation
impl Clone for DataRepresentation
Source§fn clone(&self) -> DataRepresentation
fn clone(&self) -> DataRepresentation
Returns a duplicate 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 DataRepresentation
impl Debug for DataRepresentation
Source§impl PartialEq for DataRepresentation
impl PartialEq for DataRepresentation
impl Eq for DataRepresentation
impl StructuralPartialEq for DataRepresentation
Auto Trait Implementations§
impl Freeze for DataRepresentation
impl RefUnwindSafe for DataRepresentation
impl Send for DataRepresentation
impl Sync for DataRepresentation
impl Unpin for DataRepresentation
impl UnsafeUnpin for DataRepresentation
impl UnwindSafe for DataRepresentation
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> 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.