pub struct RawRequestParams { /* private fields */ }Expand description
A flexible, untyped request-parameter builder for unsupported or newly introduced OKX fields.
Prefer endpoint-specific request types whenever one exists. Adding the same key more than once replaces its previous value while preserving insertion order, preventing duplicate JSON object keys.
Implementations§
Source§impl RawRequestParams
impl RawRequestParams
Sourcepub fn param(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn param(self, key: impl Into<String>, value: impl Into<String>) -> Self
Add or replace a string parameter.
Sourcepub fn bool_param(self, key: impl Into<String>, value: bool) -> Self
pub fn bool_param(self, key: impl Into<String>, value: bool) -> Self
Add or replace a boolean parameter.
Sourcepub fn string_list<I, S>(self, key: impl Into<String>, values: I) -> Self
pub fn string_list<I, S>(self, key: impl Into<String>, values: I) -> Self
Add or replace an array-of-strings parameter.
Trait Implementations§
Source§impl Clone for RawRequestParams
impl Clone for RawRequestParams
Source§fn clone(&self) -> RawRequestParams
fn clone(&self) -> RawRequestParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RawRequestParams
impl Debug for RawRequestParams
Source§impl Default for RawRequestParams
impl Default for RawRequestParams
Source§fn default() -> RawRequestParams
fn default() -> RawRequestParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RawRequestParams
impl RefUnwindSafe for RawRequestParams
impl Send for RawRequestParams
impl Sync for RawRequestParams
impl Unpin for RawRequestParams
impl UnsafeUnpin for RawRequestParams
impl UnwindSafe for RawRequestParams
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