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) -> TimePrecision
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 moresource§impl Debug for UtcTimeOnly
impl Debug for UtcTimeOnly
source§impl Serialize for UtcTimeOnly
impl Serialize for UtcTimeOnly
impl Copy for UtcTimeOnly
Auto Trait Implementations§
impl Freeze for UtcTimeOnly
impl RefUnwindSafe for UtcTimeOnly
impl Send for UtcTimeOnly
impl Sync for UtcTimeOnly
impl Unpin for UtcTimeOnly
impl UnwindSafe for UtcTimeOnly
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)