pub struct SimulationService { /* private fields */ }Expand description
Implementations§
Source§impl SimulationService
impl SimulationService
Sourcepub async fn pay(&self, request: &PayRequest) -> Result<()>
pub async fn pay(&self, request: &PayRequest) -> Result<()>
Mark order_id as paid in the sandbox.
The endpoint returns 200 with no useful body, so this just returns
() on success. Any non-2xx response surfaces as
crate::Error::Api.
Trait Implementations§
Source§impl Clone for SimulationService
impl Clone for SimulationService
Source§fn clone(&self) -> SimulationService
fn clone(&self) -> SimulationService
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 moreAuto Trait Implementations§
impl Freeze for SimulationService
impl !RefUnwindSafe for SimulationService
impl Send for SimulationService
impl Sync for SimulationService
impl Unpin for SimulationService
impl UnsafeUnpin for SimulationService
impl !UnwindSafe for SimulationService
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