#[repr(i32)]pub enum SubaccountRole {
SUBACCOUNT_ROLE_UNSPECIFIED = 0,
VIEWER = 1,
TRADER = 2,
LEVERAGED_TRADER = 3,
TREASURY = 4,
ADMIN = 5,
OWNER = 6,
}Expand description
Role granted to a root account on a sub-account.
Variants§
SUBACCOUNT_ROLE_UNSPECIFIED = 0
No sub-account role was specified.
VIEWER = 1
Can view permitted sub-account data.
TRADER = 2
Can place and manage spot orders where policy allows.
LEVERAGED_TRADER = 3
Can place and manage spot and leverage-enabled orders where policy allows.
TREASURY = 4
Can manage permitted funding and treasury actions where policy allows.
ADMIN = 5
Can administer delegated members and settings, except owner-only controls.
OWNER = 6
Owns the sub-account and can administer all sub-account settings.
Implementations§
Source§impl SubaccountRole
impl SubaccountRole
Sourcepub const SubaccountRoleUnspecified: Self = Self::SUBACCOUNT_ROLE_UNSPECIFIED
pub const SubaccountRoleUnspecified: Self = Self::SUBACCOUNT_ROLE_UNSPECIFIED
Idiomatic alias for Self::SUBACCOUNT_ROLE_UNSPECIFIED; Debug prints the variant name.
Sourcepub const Viewer: Self = Self::VIEWER
pub const Viewer: Self = Self::VIEWER
Idiomatic alias for Self::VIEWER; Debug prints the variant name.
Sourcepub const Trader: Self = Self::TRADER
pub const Trader: Self = Self::TRADER
Idiomatic alias for Self::TRADER; Debug prints the variant name.
Sourcepub const LeveragedTrader: Self = Self::LEVERAGED_TRADER
pub const LeveragedTrader: Self = Self::LEVERAGED_TRADER
Idiomatic alias for Self::LEVERAGED_TRADER; Debug prints the variant name.
Sourcepub const Treasury: Self = Self::TREASURY
pub const Treasury: Self = Self::TREASURY
Idiomatic alias for Self::TREASURY; Debug prints the variant name.
Sourcepub const Admin: Self = Self::ADMIN
pub const Admin: Self = Self::ADMIN
Idiomatic alias for Self::ADMIN; Debug prints the variant name.
Sourcepub const Owner: Self = Self::OWNER
pub const Owner: Self = Self::OWNER
Idiomatic alias for Self::OWNER; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for SubaccountRole
impl Clone for SubaccountRole
Source§fn clone(&self) -> SubaccountRole
fn clone(&self) -> SubaccountRole
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SubaccountRole
Source§impl Debug for SubaccountRole
impl Debug for SubaccountRole
Source§impl Default for SubaccountRole
impl Default for SubaccountRole
Source§impl<'de> Deserialize<'de> for SubaccountRole
impl<'de> Deserialize<'de> for SubaccountRole
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Enumeration for SubaccountRole
impl Enumeration for SubaccountRole
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
.proto file.impl Eq for SubaccountRole
Source§impl Hash for SubaccountRole
impl Hash for SubaccountRole
Source§impl PartialEq for SubaccountRole
impl PartialEq for SubaccountRole
Source§impl ProtoElemJson for SubaccountRole
impl ProtoElemJson for SubaccountRole
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Source§impl Serialize for SubaccountRole
impl Serialize for SubaccountRole
impl StructuralPartialEq for SubaccountRole
Auto Trait Implementations§
impl Freeze for SubaccountRole
impl RefUnwindSafe for SubaccountRole
impl Send for SubaccountRole
impl Sync for SubaccountRole
impl Unpin for SubaccountRole
impl UnsafeUnpin for SubaccountRole
impl UnwindSafe for SubaccountRole
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.