pub struct PgCollation {
pub oid: SmolStr,
pub collname: SmolStr,
pub collnamespace: SmolStr,
pub collowner: SmolStr,
pub collprovider: PgCollationCollprovider,
pub collisdeterministic: bool,
pub collencoding: Option<SmolStr>,
pub collcollate: Option<SmolStr>,
pub collctype: Option<SmolStr>,
pub colllocale: Option<SmolStr>,
pub collicurules: Option<SmolStr>,
pub description: Option<SmolStr>,
}Expand description
The DDL-only contents of pg_collation
Fields§
§oid: SmolStroid Row identifier
collname: SmolStrname Collation name (unique per namespace and encoding)
collnamespace: SmolStroid (references pg_namespace.oid) The OID of the namespace that contains this collation
collowner: SmolStroid (references pg_authid.oid) Owner of the collation
collprovider: PgCollationCollproviderchar Provider of the collation: d = database default, b = builtin, c = libc, i = icu
collisdeterministic: boolbool Is the collation deterministic?
collencoding: Option<SmolStr>int4 Encoding in which the collation is applicable, or -1 if it works for any encoding
collcollate: Option<SmolStr>text LC_COLLATE for this collation object. If the provider is not libc, collcollate is NULL and colllocale is used instead.
collctype: Option<SmolStr>text LC_CTYPE for this collation object. If the provider is not libc, collctype is NULL and colllocale is used instead.
colllocale: Option<SmolStr>text Collation provider locale name for this collation object. If the provider is libc, colllocale is NULL; collcollate and collctype are used instead.
collicurules: Option<SmolStr>text ICU collation rules for this collation object
description: Option<SmolStr>text The comment from pg_description
Trait Implementations§
Source§impl Clone for PgCollation
impl Clone for PgCollation
Source§fn clone(&self) -> PgCollation
fn clone(&self) -> PgCollation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PgCollation
impl Debug for PgCollation
Source§impl<'de> Deserialize<'de> for PgCollation
impl<'de> Deserialize<'de> for PgCollation
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgCollation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PgCollation, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PgCollation
impl PartialEq for PgCollation
Source§impl Serialize for PgCollation
impl Serialize for PgCollation
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,
impl Eq for PgCollation
impl StructuralPartialEq for PgCollation
Auto Trait Implementations§
impl Freeze for PgCollation
impl RefUnwindSafe for PgCollation
impl Send for PgCollation
impl Sync for PgCollation
impl Unpin for PgCollation
impl UnsafeUnpin for PgCollation
impl UnwindSafe for PgCollation
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
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
key and return true if they are equal.