pub struct PriceListClient { /* private fields */ }Expand description
Calls PriceListService.
The public price list: the list price of every billable product, for anyone to read, websites included. It needs no access token.
Unlike the rest of this API, its path has been /v1/pricing since before
the API was published, and its fields are written in snake case, as
websites read them.
Implementations§
Source§impl PriceListClient
impl PriceListClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of PriceListService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub async fn get_price_list(
&self,
request: GetPriceListRequest,
) -> Result<PriceList, Error>
pub async fn get_price_list( &self, request: GetPriceListRequest, ) -> Result<PriceList, Error>
Returns the prices in effect now. The answer carries an ETag; a
request that sends it back in If-None-Match is answered
304 Not Modified, without a body, while the list is unchanged.
Trait Implementations§
Source§impl Clone for PriceListClient
impl Clone for PriceListClient
Auto Trait Implementations§
impl !RefUnwindSafe for PriceListClient
impl !UnwindSafe for PriceListClient
impl Forget for PriceListClient
impl Freeze for PriceListClient
impl Move for PriceListClient
impl Send for PriceListClient
impl Sync for PriceListClient
impl Unpin for PriceListClient
impl UnsafeUnpin for PriceListClient
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