pub struct Transfer {
pub id: String,
pub reference: String,
pub kind: TransferKind,
pub from_account: String,
pub to_account: String,
pub amount: i64,
pub created_at: u64,
pub metadata: Json,
}Expand description
One movement of value between two accounts.
Fields§
§id: String§reference: StringThe caller’s idempotency key — a payment id, a job id. Unique: a second transfer under the same reference returns the first rather than moving the money again, which is what stops a retried webhook crediting twice.
kind: TransferKind§from_account: String§to_account: String§amount: i64Always positive. Direction is the two account fields.
created_at: u64§metadata: JsonImplementations§
Trait Implementations§
impl StructuralPartialEq for Transfer
Auto Trait Implementations§
impl Freeze for Transfer
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnsafeUnpin for Transfer
impl UnwindSafe for Transfer
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