pub struct Time {
pub iso: String,
pub datetime: DateTime,
pub timezone: Option<TimeZone>,
}
Expand description
Information about date, time and timezone.
Fields§
§iso: String
ISO representation of date and time, time zone included (see https://services.timeanddate.com/api/doc/v3/bi01.html#ISO8601) if different from UTC. If time is not applicable, only the date is shown.
Example: 2011-06-08T09:18:16+02:00 Example: 2011-06-08T07:18:16 (UTC time) Example: 2011-06-08 (only date)
datetime: DateTime
Date and time, split up into components.
timezone: Option<TimeZone>
Time zone information.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Time
impl<'de> Deserialize<'de> for Time
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Time, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Time, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Time
impl RefUnwindSafe for Time
impl Send for Time
impl Sync for Time
impl Unpin for Time
impl UnwindSafe for Time
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