Skip to main content

ToRow

Trait ToRow 

Source
pub trait ToRow {
    // Required method
    fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>;
}
Expand description

A value that can be written as one binary COPY row.

Required Methods§

Source

fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>

Appends the row (field count and framed fields) to buf.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<A: ToSql, B: ToSql, C: ToSql, D: ToSql, E: ToSql, F: ToSql, G: ToSql, H: ToSql> ToRow for (A, B, C, D, E, F, G, H)

Source§

fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>

Source§

impl<A: ToSql, B: ToSql, C: ToSql, D: ToSql, E: ToSql, F: ToSql, G: ToSql> ToRow for (A, B, C, D, E, F, G)

Source§

fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>

Source§

impl<A: ToSql, B: ToSql, C: ToSql, D: ToSql, E: ToSql, F: ToSql> ToRow for (A, B, C, D, E, F)

Source§

fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>

Source§

impl<A: ToSql, B: ToSql, C: ToSql, D: ToSql, E: ToSql> ToRow for (A, B, C, D, E)

Source§

fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>

Source§

impl<A: ToSql, B: ToSql, C: ToSql, D: ToSql> ToRow for (A, B, C, D)

Source§

fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>

Source§

impl<A: ToSql, B: ToSql, C: ToSql> ToRow for (A, B, C)

Source§

fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>

Source§

impl<A: ToSql, B: ToSql> ToRow for (A, B)

Source§

fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>

Source§

impl<A: ToSql> ToRow for (A,)

Source§

fn encode_row(&self, buf: &mut BytesMut) -> Result<(), Error>

Implementors§

Source§

impl<T: ToSql> ToRow for T