pub struct LocalTime {
pub hour: u8,
pub minute: u8,
pub second: u8,
pub nanosecond: u32,
}Expand description
A TOML local time value.
Fields§
§hour: u8The hour in 24-hour format.
This is always between 0–23 (inclusive).
minute: u8The minute portion of the time.
This is always between 0–59 (inclusive).
second: u8The second portion of the time.
This is always between 0–60 (inclusive), 60 is valid for leap seconds.
nanosecond: u32The nanosecond portion of the time.
This is always between 0–999 999 999 (inclusive).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LocalTime
impl<'de> Deserialize<'de> for LocalTime
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LocalTime> for AnyDatetime
impl From<LocalTime> for AnyDatetime
Source§impl TryFrom<AnyDatetime> for LocalTime
impl TryFrom<AnyDatetime> for LocalTime
impl Eq for LocalTime
impl StructuralPartialEq for LocalTime
Auto Trait Implementations§
impl Freeze for LocalTime
impl RefUnwindSafe for LocalTime
impl Send for LocalTime
impl Sync for LocalTime
impl Unpin for LocalTime
impl UnwindSafe for LocalTime
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