pub struct CreditTransaction {
pub id: Uuid,
pub transaction_type: TransactionType,
pub credits_amount: f64,
pub credits_balance_after: f64,
pub provider: Option<String>,
pub model: Option<String>,
pub description: String,
pub created_at: DateTime<Utc>,
}Expand description
Represents a single credit transaction (legacy).
Fields§
§id: UuidThe unique ID of the transaction.
transaction_type: TransactionTypeThe type of the transaction.
credits_amount: f64The amount of credits involved in the transaction.
credits_balance_after: f64The credit balance after the transaction.
provider: Option<String>The provider associated with the transaction, if any.
model: Option<String>The model associated with the transaction, if any.
description: StringA description of the transaction.
created_at: DateTime<Utc>The timestamp of when the transaction occurred.
Trait Implementations§
Source§impl Clone for CreditTransaction
impl Clone for CreditTransaction
Source§fn clone(&self) -> CreditTransaction
fn clone(&self) -> CreditTransaction
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 CreditTransaction
impl Debug for CreditTransaction
Source§impl<'de> Deserialize<'de> for CreditTransaction
impl<'de> Deserialize<'de> for CreditTransaction
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 CreditTransaction
impl RefUnwindSafe for CreditTransaction
impl Send for CreditTransaction
impl Sync for CreditTransaction
impl Unpin for CreditTransaction
impl UnwindSafe for CreditTransaction
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