pub struct PurchaseRequestApi<'a> { /* private fields */ }Expand description
Purchase Request API.
Implementations§
Source§impl<'a> PurchaseRequestApi<'a>
impl<'a> PurchaseRequestApi<'a>
pub fn new(client: &'a ConcurClient) -> Self
Sourcepub async fn create(
&self,
request: &CreatePurchaseRequest,
) -> Result<CreatePurchaseResponse>
pub async fn create( &self, request: &CreatePurchaseRequest, ) -> Result<CreatePurchaseResponse>
Create a purchase request.
Sourcepub async fn get(&self, purchase_request_id: &str) -> Result<PurchaseRequest>
pub async fn get(&self, purchase_request_id: &str) -> Result<PurchaseRequest>
Get purchase request details.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PurchaseRequestApi<'a>
impl<'a> !UnwindSafe for PurchaseRequestApi<'a>
impl<'a> Forget for PurchaseRequestApi<'a>
impl<'a> Freeze for PurchaseRequestApi<'a>
impl<'a> Send for PurchaseRequestApi<'a>
impl<'a> Sync for PurchaseRequestApi<'a>
impl<'a> Unpin for PurchaseRequestApi<'a>
impl<'a> UnsafeUnpin for PurchaseRequestApi<'a>
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