pub struct UserRecord {
pub user_id: Option<String>,
pub traffic_limit: i64,
pub traffic_used: i64,
pub expires_at: i64,
pub enabled: bool,
}Expand description
Fields§
§user_id: Option<String>Optional user identifier (for traffic recording and logging).
traffic_limit: i64Traffic limit in bytes (0 = unlimited). Uses i64 to match DB column types.
traffic_used: i64Traffic already used in bytes.
expires_at: i64Expiration as Unix timestamp (0 = never expires).
enabled: boolWhether the account is enabled.
Trait Implementations§
Source§impl Clone for UserRecord
impl Clone for UserRecord
Source§fn clone(&self) -> UserRecord
fn clone(&self) -> UserRecord
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 UserRecord
impl Debug for UserRecord
Source§impl From<CachedUser> for UserRecord
impl From<CachedUser> for UserRecord
Source§fn from(cached: CachedUser) -> Self
fn from(cached: CachedUser) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UserRecord
impl RefUnwindSafe for UserRecord
impl Send for UserRecord
impl Sync for UserRecord
impl Unpin for UserRecord
impl UnsafeUnpin for UserRecord
impl UnwindSafe for UserRecord
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