Skip to main content

TextDecode

Trait TextDecode 

Source
pub trait TextDecode: Sized {
    // Required method
    fn decode_text(s: &str) -> Result<Self, Error>;
}
Expand description

Decode a value from PostgreSQL text format.

Required Methods§

Source

fn decode_text(s: &str) -> Result<Self, Error>

Decode from a PostgreSQL text representation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl TextDecode for bool

Source§

impl TextDecode for f32

Source§

impl TextDecode for f64

Source§

impl TextDecode for i8

Source§

impl TextDecode for i16

Source§

impl TextDecode for i32

Source§

impl TextDecode for i64

Source§

impl TextDecode for u32

Source§

impl TextDecode for String

Source§

impl TextDecode for Vec<u8>

Source§

impl TextDecode for [u8; 16]

Implementors§