pub struct PgConversion {
pub conname: SmolStr,
pub connamespace: SmolStr,
pub conowner: SmolStr,
pub conforencoding: SmolStr,
pub contoencoding: SmolStr,
pub conproc: SmolStr,
pub condefault: bool,
pub description: Option<SmolStr>,
}Expand description
The DDL-only contents of pg_conversion
Fields§
§conname: SmolStrname Conversion name (unique within a namespace)
connamespace: SmolStroid (references pg_namespace.oid) The OID of the namespace that contains this conversion
conowner: SmolStroid (references pg_authid.oid) Owner of the conversion
conforencoding: SmolStrint4 Source encoding ID (pg_encoding_to_char() can translate this number to the encoding name)
contoencoding: SmolStrint4 Destination encoding ID (pg_encoding_to_char() can translate this number to the encoding name)
conproc: SmolStrregproc (references pg_proc.oid) Conversion function
condefault: boolbool True if this is the default conversion
description: Option<SmolStr>text The comment from pg_description
Trait Implementations§
Source§impl Clone for PgConversion
impl Clone for PgConversion
Source§fn clone(&self) -> PgConversion
fn clone(&self) -> PgConversion
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 PgConversion
impl Debug for PgConversion
Source§impl<'de> Deserialize<'de> for PgConversion
impl<'de> Deserialize<'de> for PgConversion
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgConversion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgConversion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PgConversion
impl PartialEq for PgConversion
Source§impl Serialize for PgConversion
impl Serialize for PgConversion
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for PgConversion
impl StructuralPartialEq for PgConversion
Auto Trait Implementations§
impl Freeze for PgConversion
impl RefUnwindSafe for PgConversion
impl Send for PgConversion
impl Sync for PgConversion
impl Unpin for PgConversion
impl UnsafeUnpin for PgConversion
impl UnwindSafe for PgConversion
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.