pub struct CreateSpecialKeyParamsBuilder { /* private fields */ }Expand description
Builder for CreateSpecialKeyParams.
Implementations§
Source§impl CreateSpecialKeyParamsBuilder
impl CreateSpecialKeyParamsBuilder
Sourcepub fn api_name<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn api_name<VALUE: Into<String>>(self, value: VALUE) -> Self
The api_name parameter.
This field is **required.
Sourcepub fn symbol<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn symbol<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
isolated margin pair
This field is **optional.
Sourcepub fn ip<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn ip<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
Can be added in batches, separated by commas. Max 30 for an API key
This field is **optional.
Sourcepub fn public_key<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn public_key<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
- If publicKey is inputted it will create an RSA or Ed25519 key.
2. Need to be encoded to URL-encoded format
This field is **optional.
Sourcepub fn permission_mode<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn permission_mode<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
This parameter is only for the Ed25519 API key, and does not effact for other encryption methods. The value can be TRADE (TRADE for all permissions) or READ (READ for USER_DATA, FIX_API_READ_ONLY). The default value is TRADE.
This field is **optional.
Sourcepub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
pub fn recv_window<VALUE: Into<Option<i64>>>(self, value: VALUE) -> Self
No more than 60000
This field is **optional.
Sourcepub fn build(self) -> Result<CreateSpecialKeyParams, ParamBuildError>
pub fn build(self) -> Result<CreateSpecialKeyParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateSpecialKeyParamsBuilder
impl RefUnwindSafe for CreateSpecialKeyParamsBuilder
impl Send for CreateSpecialKeyParamsBuilder
impl Sync for CreateSpecialKeyParamsBuilder
impl Unpin for CreateSpecialKeyParamsBuilder
impl UnsafeUnpin for CreateSpecialKeyParamsBuilder
impl UnwindSafe for CreateSpecialKeyParamsBuilder
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