pub struct BybitApiKeyPermissionUpdate {Show 17 fields
pub contract_trade: Option<Vec<String>>,
pub spot: Option<Vec<String>>,
pub wallet: Option<Vec<String>>,
pub options: Option<Vec<String>>,
pub derivatives: Option<Vec<String>>,
pub exchange: Option<Vec<String>>,
pub earn: Option<Vec<String>>,
pub affiliate: Option<Vec<String>>,
pub block_trade: Option<Vec<String>>,
pub copy_trading: Option<Vec<String>>,
pub nft: Option<Vec<String>>,
pub fiat_p2p: Option<Vec<String>>,
pub fiat_bybit_pay: Option<Vec<String>>,
pub fiat_bit_pay: Option<Vec<String>>,
pub fiat_convert_broker: Option<Vec<String>>,
pub bit_card: Option<Vec<String>>,
pub byx_post: Option<Vec<String>>,
}Expand description
Request-side permission patch for API-key update endpoints (PascalCase).
Kept separate from the response-side
crate::http::models::BybitApiKeyPermissions: every field here is
Option<Vec<String>> with skip_serializing_if, so an unset bucket is
omitted from the request body entirely rather than being serialised as an
explicit empty array (which the venue treats as “clear all permissions”).
The field set is the superset of the master and sub-account permission
tables. Buckets that only appear for master-account keys (FiatP2P,
FiatBybitPay, FiatBitPay, FiatConvertBroker, BitCard, ByXPost)
must not be set when calling POST /v5/user/update-sub-api; callers are
expected to only populate the buckets documented for the endpoint being
invoked.
§References
Fields§
§contract_trade: Option<Vec<String>>§spot: Option<Vec<String>>§wallet: Option<Vec<String>>§options: Option<Vec<String>>§derivatives: Option<Vec<String>>§exchange: Option<Vec<String>>§earn: Option<Vec<String>>§affiliate: Option<Vec<String>>§block_trade: Option<Vec<String>>§copy_trading: Option<Vec<String>>§nft: Option<Vec<String>>§fiat_p2p: Option<Vec<String>>§fiat_bybit_pay: Option<Vec<String>>§fiat_bit_pay: Option<Vec<String>>§fiat_convert_broker: Option<Vec<String>>§bit_card: Option<Vec<String>>§byx_post: Option<Vec<String>>Trait Implementations§
Source§impl Clone for BybitApiKeyPermissionUpdate
impl Clone for BybitApiKeyPermissionUpdate
Source§fn clone(&self) -> BybitApiKeyPermissionUpdate
fn clone(&self) -> BybitApiKeyPermissionUpdate
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 BybitApiKeyPermissionUpdate
impl Debug for BybitApiKeyPermissionUpdate
Source§impl Default for BybitApiKeyPermissionUpdate
impl Default for BybitApiKeyPermissionUpdate
Source§fn default() -> BybitApiKeyPermissionUpdate
fn default() -> BybitApiKeyPermissionUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BybitApiKeyPermissionUpdate
impl<'de> Deserialize<'de> for BybitApiKeyPermissionUpdate
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 BybitApiKeyPermissionUpdate
impl RefUnwindSafe for BybitApiKeyPermissionUpdate
impl Send for BybitApiKeyPermissionUpdate
impl Sync for BybitApiKeyPermissionUpdate
impl Unpin for BybitApiKeyPermissionUpdate
impl UnsafeUnpin for BybitApiKeyPermissionUpdate
impl UnwindSafe for BybitApiKeyPermissionUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more