pub struct PayRequest {
pub order_id: String,
pub amount: i64,
}Expand description
Input for SimulationService::pay.
Fields§
§order_id: StringOrder identifier to mark as paid.
amount: i64Amount, must match the existing transaction and be greater than 0.
Trait Implementations§
Source§impl Clone for PayRequest
impl Clone for PayRequest
Source§fn clone(&self) -> PayRequest
fn clone(&self) -> PayRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PayRequest
impl Debug for PayRequest
Source§impl PartialEq for PayRequest
impl PartialEq for PayRequest
Source§fn eq(&self, other: &PayRequest) -> bool
fn eq(&self, other: &PayRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PayRequest
impl Serialize for PayRequest
impl Eq for PayRequest
impl StructuralPartialEq for PayRequest
Auto Trait Implementations§
impl Freeze for PayRequest
impl RefUnwindSafe for PayRequest
impl Send for PayRequest
impl Sync for PayRequest
impl Unpin for PayRequest
impl UnsafeUnpin for PayRequest
impl UnwindSafe for PayRequest
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