pub struct GeneralActivity {
pub total_seconds_played: u64,
pub start_of_playtime: String,
pub average_seconds_played: u64,
}
Fields§
§total_seconds_played: u64
§start_of_playtime: String
§average_seconds_played: u64
Implementations§
Source§impl GeneralActivity
impl GeneralActivity
pub fn total_seconds_played_to_hours(&self) -> f64
pub fn average_seconds_played_to_hours(&self) -> f64
Trait Implementations§
Source§impl Clone for GeneralActivity
impl Clone for GeneralActivity
Source§fn clone(&self) -> GeneralActivity
fn clone(&self) -> GeneralActivity
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 GeneralActivity
impl Debug for GeneralActivity
Source§impl Default for GeneralActivity
impl Default for GeneralActivity
Source§fn default() -> GeneralActivity
fn default() -> GeneralActivity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GeneralActivity
impl<'de> Deserialize<'de> for GeneralActivity
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 GeneralActivity
impl PartialEq for GeneralActivity
Source§impl Serialize for GeneralActivity
impl Serialize for GeneralActivity
impl StructuralPartialEq for GeneralActivity
Auto Trait Implementations§
impl Freeze for GeneralActivity
impl RefUnwindSafe for GeneralActivity
impl Send for GeneralActivity
impl Sync for GeneralActivity
impl Unpin for GeneralActivity
impl UnwindSafe for GeneralActivity
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