pub struct GetDeliveryPriceParams {
pub category: Category,
pub symbol: Option<String>,
pub base_coin: Option<String>,
pub limit: Option<u64>,
pub cursor: Option<String>,
}Expand description
Query params for Client::get_delivery_price.
Covers: linear / inverse / option
Fields§
§category: CategoryProduct type. linear, inverse, option.
symbol: Option<String>Symbol name, like BTCUSDT, uppercase only.
base_coin: Option<String>Base coin, uppercase only. Default: BTC. Valid for option only.
limit: Option<u64>Max 200. Default 50.
cursor: Option<String>Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Implementations§
Source§impl GetDeliveryPriceParams
impl GetDeliveryPriceParams
Sourcepub fn new(category: Category) -> Self
pub fn new(category: Category) -> Self
Create with the required fields; set the optional ones with the with_* methods.
Sourcepub fn with_symbol(self, v: impl Into<String>) -> Self
pub fn with_symbol(self, v: impl Into<String>) -> Self
Set symbol: symbol name, like BTCUSDT, uppercase only.
Sourcepub fn with_base_coin(self, v: impl Into<String>) -> Self
pub fn with_base_coin(self, v: impl Into<String>) -> Self
Set base_coin: base coin, uppercase only. Default: BTC. Valid for option only.
Sourcepub fn with_limit(self, v: u64) -> Self
pub fn with_limit(self, v: u64) -> Self
Set limit: max 200. Default 50.
Sourcepub fn with_cursor(self, v: impl Into<String>) -> Self
pub fn with_cursor(self, v: impl Into<String>) -> Self
Set cursor: cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set.
Trait Implementations§
Source§impl Clone for GetDeliveryPriceParams
impl Clone for GetDeliveryPriceParams
Source§impl Debug for GetDeliveryPriceParams
impl Debug for GetDeliveryPriceParams
Auto Trait Implementations§
impl Freeze for GetDeliveryPriceParams
impl RefUnwindSafe for GetDeliveryPriceParams
impl Send for GetDeliveryPriceParams
impl Sync for GetDeliveryPriceParams
impl Unpin for GetDeliveryPriceParams
impl UnsafeUnpin for GetDeliveryPriceParams
impl UnwindSafe for GetDeliveryPriceParams
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