pub struct UserActivitySummary {
pub user_id: Uuid,
pub username: String,
pub trade_count: i64,
pub total_volume_btc: Decimal,
pub tokens_held: i64,
pub tokens_issued: i64,
pub reputation_score: i32,
pub last_activity: Option<DateTime<Utc>>,
}Expand description
User activity summary
Fields§
§user_id: UuidUser ID
username: StringUsername
trade_count: i64Total trades made
total_volume_btc: DecimalTotal trading volume
tokens_held: i64Number of tokens held
tokens_issued: i64Number of tokens issued
reputation_score: i32Reputation score
last_activity: Option<DateTime<Utc>>Last activity timestamp
Trait Implementations§
Source§impl Clone for UserActivitySummary
impl Clone for UserActivitySummary
Source§fn clone(&self) -> UserActivitySummary
fn clone(&self) -> UserActivitySummary
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 UserActivitySummary
impl Debug for UserActivitySummary
Source§impl<'a, R: Row> FromRow<'a, R> for UserActivitySummarywhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
Decimal: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for UserActivitySummarywhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
Decimal: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for UserActivitySummary
impl RefUnwindSafe for UserActivitySummary
impl Send for UserActivitySummary
impl Sync for UserActivitySummary
impl Unpin for UserActivitySummary
impl UnwindSafe for UserActivitySummary
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more