pub struct GetCommoditiesParams {
pub symbol: Option<String>,
pub category: Option<String>,
pub format: Option<String>,
pub delimiter: Option<String>,
}Expand description
struct for passing parameters to the method get_commodities
Fields§
§symbol: Option<String>The ticker symbol of an instrument for which data is requested
category: Option<String>Filter by category of commodity
format: Option<String>The format of the response data
delimiter: Option<String>The separator used in the CSV response data
Implementations§
Source§impl GetCommoditiesParams
impl GetCommoditiesParams
Sourcepub fn builder() -> GetCommoditiesParamsBuilder
pub fn builder() -> GetCommoditiesParamsBuilder
Create a new builder for this parameter struct
Trait Implementations§
Source§impl Clone for GetCommoditiesParams
impl Clone for GetCommoditiesParams
Source§fn clone(&self) -> GetCommoditiesParams
fn clone(&self) -> GetCommoditiesParams
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 moreSource§impl Debug for GetCommoditiesParams
impl Debug for GetCommoditiesParams
Source§impl Default for GetCommoditiesParams
impl Default for GetCommoditiesParams
Source§fn default() -> GetCommoditiesParams
fn default() -> GetCommoditiesParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GetCommoditiesParams
impl<'de> Deserialize<'de> for GetCommoditiesParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetCommoditiesParams
impl RefUnwindSafe for GetCommoditiesParams
impl Send for GetCommoditiesParams
impl Sync for GetCommoditiesParams
impl Unpin for GetCommoditiesParams
impl UnwindSafe for GetCommoditiesParams
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