Struct easyfix_messages::fields::UtcTimeOnly
source · pub struct UtcTimeOnly { /* private fields */ }
Implementations§
source§impl UtcTimeOnly
impl UtcTimeOnly
sourcepub fn with_secs(time: NaiveTime) -> UtcTimeOnly
pub fn with_secs(time: NaiveTime) -> UtcTimeOnly
Creates UtcTimeOnly with time precision set to full seconds input’s precision is adjusted to requested one
sourcepub fn with_millis(time: NaiveTime) -> UtcTimeOnly
pub fn with_millis(time: NaiveTime) -> UtcTimeOnly
Creates UtcTimeOnly with time precision set to full milliseconds input’s precision is adjusted to requested one
sourcepub fn with_micros(time: NaiveTime) -> UtcTimeOnly
pub fn with_micros(time: NaiveTime) -> UtcTimeOnly
Creates UtcTimeOnly with time precision set to full microseconds input’s precision is adjusted to requested one
sourcepub fn with_nanos(time: NaiveTime) -> UtcTimeOnly
pub fn with_nanos(time: NaiveTime) -> UtcTimeOnly
Creates UtcTimeOnly with time precision set to full nanoseconds input’s precision is adjusted to requested one
pub fn format<'a>(&self, fmt: &'a str) -> DelayedFormat<StrftimeItems<'a>>
pub fn timestamp(&self) -> NaiveTime
pub fn precision(&self) -> u8
Trait Implementations§
source§impl Clone for UtcTimeOnly
impl Clone for UtcTimeOnly
source§fn clone(&self) -> UtcTimeOnly
fn clone(&self) -> UtcTimeOnly
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more