Struct hdbconnect::types::DayDate [−][src]
pub struct DayDate(_);
Implementation of HANA's DayDate
.
The type is used internally to implement serialization to the wire. It is agnostic of timezones.
Methods
impl DayDate
[src]
impl DayDate
pub fn from_ymd(y: i32, m: u32, d: u32) -> HdbResult<DayDate>
[src]
pub fn from_ymd(y: i32, m: u32, d: u32) -> HdbResult<DayDate>
Factory method for DayDate with all fields.
pub fn as_ymd(&self) -> (i32, u32, u32)
[src]
pub fn as_ymd(&self) -> (i32, u32, u32)
Convert into tuple of "elements".
pub fn from_date_string(s: &str) -> HdbResult<DayDate>
[src]
pub fn from_date_string(s: &str) -> HdbResult<DayDate>
Parses a DayDate
from a String.
Note that Chrono types serialize as formatted Strings.
We parse such (and other) Strings and construct a DayDate
.
Trait Implementations
impl Clone for DayDate
[src]
impl Clone for DayDate
fn clone(&self) -> DayDate
[src]
fn clone(&self) -> DayDate
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for DayDate
[src]
impl Debug for DayDate
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for DayDate
[src]
impl Display for DayDate
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq<DayDate> for DayDate
[src]
impl PartialEq<DayDate> for DayDate