Trait xitca_postgres::dev::Encode
source · pub trait Encode: Sealed + Sized {
// Required method
fn encode<I, const SYNC_MODE: bool>(
self,
params: I,
buf: &mut BytesMut,
) -> Result<(), Error>
where I: AsParams;
}
Expand description
trait for generic over how to encode a query. this trait can not be implement by library user.
Required Methods§
fn encode<I, const SYNC_MODE: bool>(
self,
params: I,
buf: &mut BytesMut,
) -> Result<(), Error>where
I: AsParams,
Object Safety§
This trait is not object safe.