Trait Encoder

Source
pub trait Encoder {
    // Required method
    fn encode_field_with_type_and_format<T>(
        &mut self,
        value: &T,
        data_type: &Type,
        format: FieldFormat,
    ) -> PgWireResult<()>
       where T: ToSql + ToSqlText + Sized;
}

Required Methods§

Source

fn encode_field_with_type_and_format<T>( &mut self, value: &T, data_type: &Type, format: FieldFormat, ) -> PgWireResult<()>
where T: ToSql + ToSqlText + Sized,

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 Encoder for DataRowEncoder

Source§

fn encode_field_with_type_and_format<T>( &mut self, value: &T, data_type: &Type, format: FieldFormat, ) -> PgWireResult<()>
where T: ToSql + ToSqlText + Sized,

Implementors§