#[non_exhaustive]pub struct SubAccountApiKey {
pub sub_acct: String,
pub label: String,
pub api_key: String,
pub secret_key: String,
pub passphrase: String,
pub perm: String,
pub ip: String,
pub ts: NumberString,
}Expand description
An API key for a sub-account (create, list, modify, delete responses).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.sub_acct: StringSub-account name.
label: StringAPI key label.
api_key: StringAPI key value.
secret_key: StringSecret key (only returned on creation).
passphrase: StringPassphrase (only returned on creation).
perm: StringPermissions (comma-separated, e.g. "read_only,trade").
ip: StringAllowed IP addresses (comma-separated).
ts: NumberStringCreation timestamp (Unix milliseconds).
Trait Implementations§
Source§impl Clone for SubAccountApiKey
impl Clone for SubAccountApiKey
Source§fn clone(&self) -> SubAccountApiKey
fn clone(&self) -> SubAccountApiKey
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 SubAccountApiKey
impl Debug for SubAccountApiKey
Source§impl<'de> Deserialize<'de> for SubAccountApiKey
impl<'de> Deserialize<'de> for SubAccountApiKey
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 SubAccountApiKey
impl RefUnwindSafe for SubAccountApiKey
impl Send for SubAccountApiKey
impl Sync for SubAccountApiKey
impl Unpin for SubAccountApiKey
impl UnsafeUnpin for SubAccountApiKey
impl UnwindSafe for SubAccountApiKey
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