Enum libpq::Encoding

source ·
#[repr(i32)]
pub enum Encoding {
Show 42 variants SQL_ASCII = 0, EUC_JP = 1, EUC_CN = 2, EUC_KR = 3, EUC_TW = 4, EUC_JIS_2004 = 5, UTF8 = 6, MULE_INTERNAL = 7, LATIN1 = 8, LATIN2 = 9, LATIN3 = 10, LATIN4 = 11, LATIN5 = 12, LATIN6 = 13, LATIN7 = 14, LATIN8 = 15, LATIN9 = 16, LATIN10 = 17, WIN1256 = 18, WIN1258 = 19, WIN866 = 20, WIN874 = 21, KOI8R = 22, WIN1251 = 23, WIN1252 = 24, ISO_8859_5 = 25, ISO_8859_6 = 26, ISO_8859_7 = 27, ISO_8859_8 = 28, WIN1250 = 29, WIN1253 = 30, WIN1254 = 31, WIN1255 = 32, WIN1257 = 33, KOI8U = 34, SJIS = 35, BIG5 = 36, GBK = 37, UHC = 38, GB18030 = 39, JOHAB = 40, SHIFT_JIS_2004 = 41,
}

Variants§

§

SQL_ASCII = 0

§

EUC_JP = 1

§

EUC_CN = 2

§

EUC_KR = 3

§

EUC_TW = 4

§

EUC_JIS_2004 = 5

§

UTF8 = 6

§

MULE_INTERNAL = 7

§

LATIN1 = 8

§

LATIN2 = 9

§

LATIN3 = 10

§

LATIN4 = 11

§

LATIN5 = 12

§

LATIN6 = 13

§

LATIN7 = 14

§

LATIN8 = 15

§

LATIN9 = 16

§

LATIN10 = 17

§

WIN1256 = 18

§

WIN1258 = 19

§

WIN866 = 20

§

WIN874 = 21

§

KOI8R = 22

§

WIN1251 = 23

§

WIN1252 = 24

§

ISO_8859_5 = 25

§

ISO_8859_6 = 26

§

ISO_8859_7 = 27

§

ISO_8859_8 = 28

§

WIN1250 = 29

§

WIN1253 = 30

§

WIN1254 = 31

§

WIN1255 = 32

§

WIN1257 = 33

§

KOI8U = 34

§

SJIS = 35

§

BIG5 = 36

§

GBK = 37

§

UHC = 38

§

GB18030 = 39

§

JOHAB = 40

§

SHIFT_JIS_2004 = 41

Trait Implementations§

source§

impl Clone for Encoding

source§

fn clone(&self) -> Encoding

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Encoding

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<i32> for Encoding

source§

fn from(encoding: i32) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Encoding

source§

fn eq(&self, other: &Encoding) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToString for Encoding

source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl Copy for Encoding

source§

impl Eq for Encoding

source§

impl StructuralEq for Encoding

source§

impl StructuralPartialEq for Encoding

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.