pub trait TextEncode {
// Required method
fn encode_text(&self) -> String;
}Expand description
Encode a value to PostgreSQL text format.
Required Methods§
Sourcefn encode_text(&self) -> String
fn encode_text(&self) -> String
Encode self to a text string for PostgreSQL.
Implementations on Foreign Types§
Source§impl TextEncode for &str
impl TextEncode for &str
fn encode_text(&self) -> String
Source§impl TextEncode for bool
impl TextEncode for bool
fn encode_text(&self) -> String
Source§impl TextEncode for f32
impl TextEncode for f32
fn encode_text(&self) -> String
Source§impl TextEncode for f64
impl TextEncode for f64
fn encode_text(&self) -> String
Source§impl TextEncode for i8
impl TextEncode for i8
fn encode_text(&self) -> String
Source§impl TextEncode for i16
impl TextEncode for i16
fn encode_text(&self) -> String
Source§impl TextEncode for i32
impl TextEncode for i32
fn encode_text(&self) -> String
Source§impl TextEncode for i64
impl TextEncode for i64
fn encode_text(&self) -> String
Source§impl TextEncode for str
impl TextEncode for str
fn encode_text(&self) -> String
Source§impl TextEncode for u32
impl TextEncode for u32
fn encode_text(&self) -> String
Source§impl TextEncode for String
impl TextEncode for String
fn encode_text(&self) -> String
Source§impl TextEncode for Vec<u8>
impl TextEncode for Vec<u8>
fn encode_text(&self) -> String
Source§impl TextEncode for [u8; 16]
Encode a UUID (16-byte array) to PostgreSQL format.
impl TextEncode for [u8; 16]
Encode a UUID (16-byte array) to PostgreSQL format.