TdsEncode

Trait TdsEncode 

Source
pub trait TdsEncode {
    // Required methods
    fn encode(&self, buf: &mut BytesMut) -> Result<(), TypeError>;
    fn type_id(&self) -> u8;
}
Expand description

Trait for encoding values to TDS binary format.

Required Methods§

Source

fn encode(&self, buf: &mut BytesMut) -> Result<(), TypeError>

Encode this value into the buffer in TDS format.

Source

fn type_id(&self) -> u8

Get the TDS type ID for this value.

Implementors§