pub struct Conversion(/* private fields */);Expand description
A PostgreSQL encoding conversion name.
Implementations§
Source§impl Conversion
impl Conversion
Sourcepub const fn from_static_or_panic(input: &'static str) -> Self
pub const fn from_static_or_panic(input: &'static str) -> Self
Creates a new value from a static string.
§Panics
Panics if the input is empty, exceeds MAX_LENGTH, or contains NUL bytes.
Trait Implementations§
Source§impl AsRef<str> for Conversion
impl AsRef<str> for Conversion
Source§impl Clone for Conversion
impl Clone for Conversion
Source§fn clone(&self) -> Conversion
fn clone(&self) -> Conversion
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 Conversion
impl Debug for Conversion
Source§impl<'de> Deserialize<'de> for Conversion
impl<'de> Deserialize<'de> for Conversion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Conversion
impl Display for Conversion
Source§impl FromStr for Conversion
impl FromStr for Conversion
Source§impl Ord for Conversion
impl Ord for Conversion
Source§fn cmp(&self, other: &Conversion) -> Ordering
fn cmp(&self, other: &Conversion) -> 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 Conversion
impl PartialEq for Conversion
Source§impl PartialOrd for Conversion
impl PartialOrd for Conversion
Source§impl Serialize for Conversion
impl Serialize for Conversion
Source§impl TryFrom<String> for Conversion
impl TryFrom<String> for Conversion
impl Eq for Conversion
impl StructuralPartialEq for Conversion
Auto Trait Implementations§
impl Freeze for Conversion
impl RefUnwindSafe for Conversion
impl Send for Conversion
impl Sync for Conversion
impl Unpin for Conversion
impl UnsafeUnpin for Conversion
impl UnwindSafe for Conversion
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