pub type DateValue = NaiveDate;Aliased Type§
pub struct DateValue { /* private fields */ }Trait Implementations§
Source§impl FromProtocolValue for DateValue
impl FromProtocolValue for DateValue
Source§fn from_text(raw: &[u8]) -> Result<Self, ProtocolError>
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>
fn from_binary(raw: &[u8]) -> Result<Self, ProtocolError>
Decodes raw value to native type in binary format
fn from_protocol(raw: &[u8], format: Format) -> Result<Self, ProtocolError>where
Self: Sized,
Source§impl ToProtocolValue for DateValue
impl ToProtocolValue for DateValue
Source§fn to_text(&self, buf: &mut BytesMut) -> Result<(), ProtocolError>
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>
fn to_binary(&self, buf: &mut BytesMut) -> Result<(), ProtocolError>
Converts native type to raw value in binary format