pub struct User {
pub id: Uuid,
pub user_id: String,
pub plan_name: String,
pub current_credits: f64,
pub credits_used_this_month: f64,
pub credits_reset_date: DateTime<Utc>,
pub is_active: bool,
pub created_at: DateTime<Utc>,
}Expand description
Represents a user account (legacy).
Fields§
§id: UuidThe unique ID of the user.
user_id: StringThe user’s identifier string.
plan_name: StringThe name of the user’s subscription plan.
current_credits: f64The user’s current credit balance.
credits_used_this_month: f64The amount of credits the user has used in the current month.
credits_reset_date: DateTime<Utc>The date when the user’s credits will reset.
is_active: boolIndicates if the user account is active.
created_at: DateTime<Utc>The timestamp of when the user account was created.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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