pub struct Charge {
pub id: String,
pub reference: String,
pub status: ChargeStatus,
pub channel: Channel,
pub amount: Money,
pub instructions: Instructions,
pub expires_at: u64,
pub paid_at: Option<u64>,
pub metadata: Json,
}Expand description
A charge, as the gateway knows it.
Fields§
§id: StringThe gateway’s id. This is what a webhook carries and what deduplication keys on.
reference: StringThe application’s reference, echoed back.
status: ChargeStatus§channel: Channel§amount: Money§instructions: Instructions§expires_at: u64Unix seconds.
paid_at: Option<u64>Unix seconds. None until paid.
metadata: JsonImplementations§
Trait Implementations§
impl StructuralPartialEq for Charge
Auto Trait Implementations§
impl Freeze for Charge
impl RefUnwindSafe for Charge
impl Send for Charge
impl Sync for Charge
impl Unpin for Charge
impl UnsafeUnpin for Charge
impl UnwindSafe for Charge
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