Struct ockam_identity::models::TimestampInSeconds
source · pub struct TimestampInSeconds(pub u64);
Expand description
Timestamp in seconds (UTC)
Tuple Fields§
§0: u64
Implementations§
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
Trait Implementations§
source§impl Add<Duration> for TimestampInSeconds
impl Add<Duration> for TimestampInSeconds
source§impl Add<u64> for TimestampInSeconds
impl Add<u64> for TimestampInSeconds
source§impl Add for TimestampInSeconds
impl Add for TimestampInSeconds
§type Output = TimestampInSeconds
type Output = TimestampInSeconds
The resulting type after applying the
+
operator.source§impl Clone for TimestampInSeconds
impl Clone for TimestampInSeconds
source§fn clone(&self) -> TimestampInSeconds
fn clone(&self) -> TimestampInSeconds
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 TimestampInSeconds
impl Debug for TimestampInSeconds
source§impl<'bytes, Ctx> Decode<'bytes, Ctx> for TimestampInSeconds
impl<'bytes, Ctx> Decode<'bytes, Ctx> for TimestampInSeconds
source§impl Deref for TimestampInSeconds
impl Deref for TimestampInSeconds
source§impl<'de> Deserialize<'de> for TimestampInSeconds
impl<'de> Deserialize<'de> for TimestampInSeconds
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<Ctx> Encode<Ctx> for TimestampInSeconds
impl<Ctx> Encode<Ctx> for TimestampInSeconds
source§impl From<u64> for TimestampInSeconds
impl From<u64> for TimestampInSeconds
source§impl Hash for TimestampInSeconds
impl Hash for TimestampInSeconds
source§impl Ord for TimestampInSeconds
impl Ord for TimestampInSeconds
source§fn cmp(&self, other: &TimestampInSeconds) -> Ordering
fn cmp(&self, other: &TimestampInSeconds) -> Ordering
1.21.0 · 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
source§impl PartialEq for TimestampInSeconds
impl PartialEq for TimestampInSeconds
source§fn eq(&self, other: &TimestampInSeconds) -> bool
fn eq(&self, other: &TimestampInSeconds) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TimestampInSeconds
impl PartialOrd for TimestampInSeconds
source§fn partial_cmp(&self, other: &TimestampInSeconds) -> Option<Ordering>
fn partial_cmp(&self, other: &TimestampInSeconds) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for TimestampInSeconds
impl Serialize for TimestampInSeconds
source§impl Sub for TimestampInSeconds
impl Sub for TimestampInSeconds
§type Output = TimestampInSeconds
type Output = TimestampInSeconds
The resulting type after applying the
-
operator.source§impl ToSqlxType for TimestampInSeconds
impl ToSqlxType for TimestampInSeconds
impl Copy for TimestampInSeconds
impl Eq for TimestampInSeconds
impl StructuralEq for TimestampInSeconds
impl StructuralPartialEq for TimestampInSeconds
Auto Trait Implementations§
impl RefUnwindSafe for TimestampInSeconds
impl Send for TimestampInSeconds
impl Sync for TimestampInSeconds
impl Unpin for TimestampInSeconds
impl UnwindSafe for TimestampInSeconds
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<T> Decodable for Twhere
T: DeserializeOwned,
impl<T> Decodable for Twhere
T: DeserializeOwned,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.