pub struct ApiKeyPermissions {
pub ip_restrict: bool,
pub create_time: u64,
pub enable_spot_and_margin_trading: bool,
pub enable_withdrawals: bool,
pub enable_internal_transfer: bool,
pub permits_universal_transfer: bool,
pub enable_vanilla_options: bool,
pub enable_reading: bool,
pub enable_futures: bool,
pub enable_margin: bool,
pub trading_authority_expiration_time: Option<u64>,
}Expand description
API key permissions.
Fields§
§ip_restrict: boolWhether IP restricted.
create_time: u64Creation time.
enable_spot_and_margin_trading: boolWhether spot trading is enabled.
enable_withdrawals: boolWhether withdrawals are enabled.
enable_internal_transfer: boolWhether internal transfers are enabled.
permits_universal_transfer: boolPermits universal transfer.
enable_vanilla_options: boolWhether vanilla options are enabled.
enable_reading: boolWhether reading is enabled.
enable_futures: boolWhether futures trading is enabled.
enable_margin: boolWhether margin loan/borrow/repay is enabled.
Trading authority expiration time.
Trait Implementations§
Source§impl Clone for ApiKeyPermissions
impl Clone for ApiKeyPermissions
Source§fn clone(&self) -> ApiKeyPermissions
fn clone(&self) -> ApiKeyPermissions
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 ApiKeyPermissions
impl Debug for ApiKeyPermissions
Source§impl<'de> Deserialize<'de> for ApiKeyPermissions
impl<'de> Deserialize<'de> for ApiKeyPermissions
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 ApiKeyPermissions
impl RefUnwindSafe for ApiKeyPermissions
impl Send for ApiKeyPermissions
impl Sync for ApiKeyPermissions
impl Unpin for ApiKeyPermissions
impl UnwindSafe for ApiKeyPermissions
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