pub struct CreateApiKeyRequest {
pub max_scope: String,
pub name: Option<String>,
pub public_key: Option<String>,
pub enabled_features: Option<Vec<String>>,
}Expand description
Request parameters for creating a new API key.
§Example
use deribit_http::model::CreateApiKeyRequest;
let request = CreateApiKeyRequest {
max_scope: "account:read trade:read_write".to_string(),
name: Some("my_trading_key".to_string()),
..Default::default()
};Fields§
§max_scope: StringDescribes maximal access for tokens generated with this key.
Required. Possible values include combinations of:
trade:[read, read_write, none]wallet:[read, read_write, none]account:[read, read_write, none]block_trade:[read, read_write, none]
name: Option<String>Name of key (only letters, numbers and underscores; max 16 characters)
public_key: Option<String>ED25519 or RSA PEM encoded public key for asymmetric API key authentication
enabled_features: Option<Vec<String>>List of enabled advanced on-key features.
Available options:
restricted_block_tradesblock_trade_approval
Trait Implementations§
Source§impl Clone for CreateApiKeyRequest
impl Clone for CreateApiKeyRequest
Source§fn clone(&self) -> CreateApiKeyRequest
fn clone(&self) -> CreateApiKeyRequest
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 CreateApiKeyRequest
impl Debug for CreateApiKeyRequest
Source§impl Default for CreateApiKeyRequest
impl Default for CreateApiKeyRequest
Source§fn default() -> CreateApiKeyRequest
fn default() -> CreateApiKeyRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateApiKeyRequest
impl RefUnwindSafe for CreateApiKeyRequest
impl Send for CreateApiKeyRequest
impl Sync for CreateApiKeyRequest
impl Unpin for CreateApiKeyRequest
impl UnsafeUnpin for CreateApiKeyRequest
impl UnwindSafe for CreateApiKeyRequest
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