pub struct Rfc3339Timestamp(/* private fields */);Expand description
An owned timestamp view that displays and serializes as a whole-second RFC3339 string.
Deserialization accepts fractional seconds and rounds upward, like Timestamp.
Implementations§
Source§impl Rfc3339Timestamp
impl Rfc3339Timestamp
Sourcepub fn into_inner(self) -> Timestamp
pub fn into_inner(self) -> Timestamp
Returns the underlying timestamp.
Trait Implementations§
Source§impl Clone for Rfc3339Timestamp
impl Clone for Rfc3339Timestamp
Source§fn clone(&self) -> Rfc3339Timestamp
fn clone(&self) -> Rfc3339Timestamp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Rfc3339Timestamp
Source§impl Debug for Rfc3339Timestamp
impl Debug for Rfc3339Timestamp
Source§impl<'de> Deserialize<'de> for Rfc3339Timestamp
impl<'de> Deserialize<'de> for Rfc3339Timestamp
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
Source§impl Display for Rfc3339Timestamp
impl Display for Rfc3339Timestamp
impl Eq for Rfc3339Timestamp
Source§impl FromStr for Rfc3339Timestamp
impl FromStr for Rfc3339Timestamp
Source§impl PartialEq for Rfc3339Timestamp
impl PartialEq for Rfc3339Timestamp
Source§fn eq(&self, other: &Rfc3339Timestamp) -> bool
fn eq(&self, other: &Rfc3339Timestamp) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Rfc3339Timestamp
impl Serialize for Rfc3339Timestamp
impl StructuralPartialEq for Rfc3339Timestamp
Auto Trait Implementations§
impl Freeze for Rfc3339Timestamp
impl RefUnwindSafe for Rfc3339Timestamp
impl Send for Rfc3339Timestamp
impl Sync for Rfc3339Timestamp
impl Unpin for Rfc3339Timestamp
impl UnsafeUnpin for Rfc3339Timestamp
impl UnwindSafe for Rfc3339Timestamp
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