Skip to main content

DateValue

Type Alias DateValue 

Source
pub type DateValue = NaiveDate;

Aliased Type§

pub struct DateValue { /* private fields */ }

Trait Implementations§

Source§

impl FromProtocolValue for DateValue

Source§

fn from_text(raw: &[u8]) -> Result<Self, ProtocolError>

Decodes raw value to native type in text format
Source§

fn from_binary(raw: &[u8]) -> Result<Self, ProtocolError>

Decodes raw value to native type in binary format
Source§

fn from_protocol(raw: &[u8], format: Format) -> Result<Self, ProtocolError>
where Self: Sized,

Source§

impl ToProtocolValue for DateValue

Source§

fn to_text(&self, buf: &mut BytesMut) -> Result<(), ProtocolError>

Converts native type to raw value in text format
Source§

fn to_binary(&self, buf: &mut BytesMut) -> Result<(), ProtocolError>

Converts native type to raw value in binary format
Source§

fn to_protocol( &self, buf: &mut BytesMut, format: Format, ) -> Result<(), ProtocolError>
where Self: Sized,