pub struct CommonService { /* private fields */ }Expand description
Common service for general operations.
Implementations§
Source§impl CommonService
impl CommonService
Sourcepub async fn get_curr_trade_date(
&self,
opts: Option<RequestOptions>,
) -> Result<TradeDate>
pub async fn get_curr_trade_date( &self, opts: Option<RequestOptions>, ) -> Result<TradeDate>
Sourcepub async fn get_variety_list(
&self,
opts: Option<RequestOptions>,
) -> Result<Vec<Variety>>
pub async fn get_variety_list( &self, opts: Option<RequestOptions>, ) -> Result<Vec<Variety>>
Get the list of available varieties (commodities).
§Arguments
opts- Optional request options (use trade_type to filter futures/options)
Sourcepub async fn get_variety_month_year_stat(
&self,
req: &VarietyMonthYearStatRequest,
opts: Option<RequestOptions>,
) -> Result<Vec<VarietyMonthYearStat>>
pub async fn get_variety_month_year_stat( &self, req: &VarietyMonthYearStatRequest, opts: Option<RequestOptions>, ) -> Result<Vec<VarietyMonthYearStat>>
Get variety monthly/yearly statistics.
§Arguments
req- Request with trade month, trade type, and languageopts- Optional request options
Trait Implementations§
Source§impl Clone for CommonService
impl Clone for CommonService
Source§fn clone(&self) -> CommonService
fn clone(&self) -> CommonService
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 CommonService
impl !RefUnwindSafe for CommonService
impl Send for CommonService
impl Sync for CommonService
impl Unpin for CommonService
impl !UnwindSafe for CommonService
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