pub struct ProductsApi { /* private fields */ }Implementations§
Source§impl ProductsApi
impl ProductsApi
pub fn new(http: Arc<HttpClient>) -> Self
pub async fn list( &self, params: &GetProductsParams, ) -> Result<GetProductsResponse>
pub async fn get(&self, product_id: &str) -> Result<GetProductResponse>
pub async fn create( &self, params: &CreateProductParams, ) -> Result<GetProductResponse>
pub async fn update( &self, product_id: &str, params: &CreateProductParams, ) -> Result<GetProductResponse>
pub async fn delete(&self, product_id: &str) -> Result<DeleteProductResponse>
pub async fn list_prices(&self, product_id: &str) -> Result<ListPricesResponse>
pub async fn create_price( &self, product_id: &str, params: &CreatePriceParams, ) -> Result<ProductPrice>
Auto Trait Implementations§
impl !RefUnwindSafe for ProductsApi
impl !UnwindSafe for ProductsApi
impl Freeze for ProductsApi
impl Send for ProductsApi
impl Sync for ProductsApi
impl Unpin for ProductsApi
impl UnsafeUnpin for ProductsApi
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