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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl TextEncode for &str
impl TextEncode for &str
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.