#[non_exhaustive]pub enum Collation {
C,
Utf8,
Custom(String),
}Expand description
PostgreSQL collation specifications
Supports common collations and custom names.
When used, generates: field COLLATE "collation_name"
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
C
Binary collation (fast, deterministic)
Utf8
UTF-8 binary collation
Custom(String)
Custom collation name (e.g., “en-US”, “de_DE.UTF-8”)
Implementations§
Trait Implementations§
impl Eq for Collation
impl StructuralPartialEq for Collation
Auto Trait Implementations§
impl Freeze for Collation
impl RefUnwindSafe for Collation
impl Send for Collation
impl Sync for Collation
impl Unpin for Collation
impl UnsafeUnpin for Collation
impl UnwindSafe for Collation
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