pub struct At(/* private fields */);Expand description
An instant: milliseconds since 1970 in UTC. Read from RFC 3339 and written as RFC 3339 with
milliseconds and a Z (2026-09-01T10:00:00.000Z), a fixed width that sorts as text.
Implementations§
Source§impl At
impl At
pub const fn from_ms(ms: i64) -> At
pub const fn ms(self) -> i64
Sourcepub fn parse(text: &str) -> Option<At>
pub fn parse(text: &str) -> Option<At>
YYYY-MM-DDTHH:MM:SS, a fraction of a second if any (cut to the millisecond), and Z or
an offset +HH:MM. A space or a lowercase t may stand for the T, as RFC 3339
allows. None for anything else, a day that does not exist included.
Sourcepub fn plus_months(self, months: i64) -> At
pub fn plus_months(self, months: i64) -> At
months calendar months on, or back, at the same time of day. A day the month does not
have becomes its last: the 31st of January a month on is the 28th of February, or the
29th in a leap year.
Trait Implementations§
impl Copy for At
Source§impl<'de> Deserialize<'de> for At
impl<'de> Deserialize<'de> for At
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for At
Source§impl Ord for At
impl Ord for At
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for At
impl PartialOrd for At
impl StructuralPartialEq for At
Auto Trait Implementations§
impl Freeze for At
impl RefUnwindSafe for At
impl Send for At
impl Sync for At
impl Unpin for At
impl UnsafeUnpin for At
impl UnwindSafe for At
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.