pub struct DeliveryService { /* private fields */ }Expand description
Delivery service for accessing delivery-related data.
Implementations§
Source§impl DeliveryService
impl DeliveryService
Sourcepub async fn get_delivery_data(
&self,
req: &DeliveryDataRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<DeliveryData>>
pub async fn get_delivery_data( &self, req: &DeliveryDataRequest, opts: Option<RequestOptions>, ) -> Result<Vec<DeliveryData>>
Get delivery data.
§Arguments
req- Request with variety code and trade dateopts- Optional request options
Sourcepub async fn get_delivery_match(
&self,
req: &DeliveryMatchRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<DeliveryMatch>>
pub async fn get_delivery_match( &self, req: &DeliveryMatchRequest, opts: Option<RequestOptions>, ) -> Result<Vec<DeliveryMatch>>
Get delivery match data.
§Arguments
req- Request with variety code and trade dateopts- Optional request options
Sourcepub async fn get_warehouse_receipt(
&self,
req: &WarehouseReceiptRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<WarehouseReceipt>>
pub async fn get_warehouse_receipt( &self, req: &WarehouseReceiptRequest, opts: Option<RequestOptions>, ) -> Result<Vec<WarehouseReceipt>>
Get warehouse receipt data.
§Arguments
req- Request with variety code and trade dateopts- Optional request options
Sourcepub async fn get_delivery_cost(
&self,
variety: &str,
opts: Option<RequestOptions>,
) -> Result<DeliveryCost>
pub async fn get_delivery_cost( &self, variety: &str, opts: Option<RequestOptions>, ) -> Result<DeliveryCost>
Get warehouse premium for a variety.
§Arguments
variety- Variety codeopts- Optional request options
Trait Implementations§
Source§impl Clone for DeliveryService
impl Clone for DeliveryService
Source§fn clone(&self) -> DeliveryService
fn clone(&self) -> DeliveryService
Returns a duplicate of the value. Read more
1.0.0 · 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 DeliveryService
impl !RefUnwindSafe for DeliveryService
impl Send for DeliveryService
impl Sync for DeliveryService
impl Unpin for DeliveryService
impl !UnwindSafe for DeliveryService
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