pub trait Row: Send {
// Required method
fn write<'life0, 'async_trait>(
self,
writer: Pin<&'life0 mut BinaryCopyInWriter>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Binary row serialization for PostgreSQL COPY protocol.
Each implementation handles a specific tuple arity, writing fields
in binary format to match the table schema. The trait enables
Streamable to work with any row shape.
§Safety
Field order and types must exactly match the table schema defined
by the corresponding Schema implementation.