Trait DateTime

Source
pub trait DateTime {
    // Required method
    fn parse(
        s: &str,
        lenient_trailing_chars: bool,
    ) -> Result<Self, DateTimeParseError>
       where Self: Sized;

    // Provided method
    fn parse_strict(s: &str) -> Result<Self, DateTimeParseError>
       where Self: Sized { ... }
}
Expand description

Trait for parsing HL7 date and time strings into Date, Time, and TimeStamp structs

Required Methods§

Source

fn parse( s: &str, lenient_trailing_chars: bool, ) -> Result<Self, DateTimeParseError>
where Self: Sized,

Parse an HL7 date and/or time string into a Date, Time, or TimeStamp struct

Provided Methods§

Source

fn parse_strict(s: &str) -> Result<Self, DateTimeParseError>
where Self: Sized,

Parse an HL7 date and/or time string into a Date, Time, or TimeStamp struct, with strict parsing dissallowing trailing characters

Implementors§