Struct titanium::desktop::discord::models::Timestamps
pub struct Timestamps { /* private fields */ }
Expand description
A struct representing an Activity
’s timestamps
Note that all methods return Self
, and can be chained
for fluency
Implementations§
§impl Timestamps
impl Timestamps
pub fn new() -> Timestamps
pub fn new() -> Timestamps
Creates a new Timestamps
pub fn start(self, start: i64) -> Timestamps
pub fn start(self, start: i64) -> Timestamps
Sets the start time
pub fn end(self, end: i64) -> Timestamps
pub fn end(self, end: i64) -> Timestamps
Sets the end time
Trait Implementations§
§impl Clone for Timestamps
impl Clone for Timestamps
§fn clone(&self) -> Timestamps
fn clone(&self) -> Timestamps
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 more§impl Debug for Timestamps
impl Debug for Timestamps
§impl Default for Timestamps
impl Default for Timestamps
§fn default() -> Timestamps
fn default() -> Timestamps
Returns the “default value” for a type. Read more
§impl Hash for Timestamps
impl Hash for Timestamps
§impl Ord for Timestamps
impl Ord for Timestamps
§impl PartialEq<Timestamps> for Timestamps
impl PartialEq<Timestamps> for Timestamps
§fn eq(&self, other: &Timestamps) -> bool
fn eq(&self, other: &Timestamps) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<Timestamps> for Timestamps
impl PartialOrd<Timestamps> for Timestamps
§fn partial_cmp(&self, other: &Timestamps) -> Option<Ordering>
fn partial_cmp(&self, other: &Timestamps) -> 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 more§impl Serialize for Timestamps
impl Serialize for Timestamps
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Timestamps
impl Eq for Timestamps
impl StructuralEq for Timestamps
impl StructuralPartialEq for Timestamps
Auto Trait Implementations§
impl RefUnwindSafe for Timestamps
impl Send for Timestamps
impl Sync for Timestamps
impl Unpin for Timestamps
impl UnwindSafe for Timestamps
Blanket Implementations§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> IsDefault for Twhere
T: Default + PartialEq<T> + Copy,
impl<T> IsDefault for Twhere T: Default + PartialEq<T> + Copy,
§fn is_default(&self) -> bool
fn is_default(&self) -> bool
Checks that type has a default value.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.