pub struct ActivityTimestamps {
pub start: Option<DateTime<Utc>>,
pub end: Option<DateTime<Utc>>,
}Expand description
Unix timestamps (sent in milliseconds) for start and/or end of the game
§Reference
See https://docs.discord.food/resources/presence#activity-timestamps-structure
Fields§
§start: Option<DateTime<Utc>>Unix time (sent in milliseconds) of when the activity starts
end: Option<DateTime<Utc>>Unix time (sent in milliseconds) of when the activity ends
Trait Implementations§
Source§impl Clone for ActivityTimestamps
impl Clone for ActivityTimestamps
Source§fn clone(&self) -> ActivityTimestamps
fn clone(&self) -> ActivityTimestamps
Returns a duplicate 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 ActivityTimestamps
impl Debug for ActivityTimestamps
Source§impl<'de> Deserialize<'de> for ActivityTimestamps
impl<'de> Deserialize<'de> for ActivityTimestamps
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 PartialEq for ActivityTimestamps
impl PartialEq for ActivityTimestamps
Source§impl Serialize for ActivityTimestamps
impl Serialize for ActivityTimestamps
impl Copy for ActivityTimestamps
impl Eq for ActivityTimestamps
impl StructuralPartialEq for ActivityTimestamps
Auto Trait Implementations§
impl Freeze for ActivityTimestamps
impl RefUnwindSafe for ActivityTimestamps
impl Send for ActivityTimestamps
impl Sync for ActivityTimestamps
impl Unpin for ActivityTimestamps
impl UnwindSafe for ActivityTimestamps
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.