pub struct Transaction {
pub id: String,
pub kind: TransactionKind,
pub amount: f64,
pub status: String,
pub failure_message: Option<String>,
pub created_at: String,
pub completed_at: Option<String>,
}Fields§
§id: String§kind: TransactionKind§amount: f64§status: String§failure_message: Option<String>§created_at: String§completed_at: Option<String>Implementations§
Source§impl Transaction
impl Transaction
pub fn from_json(json: &Value) -> Transaction
Trait Implementations§
Source§impl Clone for Transaction
impl Clone for Transaction
Source§impl Debug for Transaction
impl Debug for Transaction
Auto Trait Implementations§
impl Forget for Transaction
impl Freeze for Transaction
impl Move for Transaction
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin for Transaction
impl UnwindSafe for Transaction
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