pub struct AccountPermissions {
pub list: bool,
pub view: bool,
pub trade: bool,
pub reduce_or_close: bool,
pub set_limits: bool,
}Expand description
Set of flags for account permissions
Fields§
§list: bool§view: bool§trade: bool§reduce_or_close: bool§set_limits: boolImplementations§
Source§impl AccountPermissions
impl AccountPermissions
pub fn all() -> Self
pub fn none() -> Self
pub fn is_none(&self) -> bool
pub fn read_only() -> Self
pub fn list(&self) -> bool
pub fn view(&self) -> bool
pub fn trade(&self) -> bool
pub fn reduce_or_close(&self) -> bool
pub fn set_limits(&self) -> bool
pub fn display(&self) -> String
Trait Implementations§
Source§impl Clone for AccountPermissions
impl Clone for AccountPermissions
Source§fn clone(&self) -> AccountPermissions
fn clone(&self) -> AccountPermissions
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 AccountPermissions
impl Debug for AccountPermissions
Source§impl Default for AccountPermissions
impl Default for AccountPermissions
Source§fn default() -> AccountPermissions
fn default() -> AccountPermissions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AccountPermissions
impl<'de> Deserialize<'de> for AccountPermissions
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
Source§impl JsonSchema for AccountPermissions
impl JsonSchema for AccountPermissions
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Ord for AccountPermissions
impl Ord for AccountPermissions
Source§fn cmp(&self, other: &AccountPermissions) -> Ordering
fn cmp(&self, other: &AccountPermissions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AccountPermissions
impl PartialEq for AccountPermissions
Source§impl PartialOrd for AccountPermissions
impl PartialOrd for AccountPermissions
Source§impl Serialize for AccountPermissions
impl Serialize for AccountPermissions
impl Copy for AccountPermissions
impl Eq for AccountPermissions
impl StructuralPartialEq for AccountPermissions
Auto Trait Implementations§
impl Freeze for AccountPermissions
impl RefUnwindSafe for AccountPermissions
impl Send for AccountPermissions
impl Sync for AccountPermissions
impl Unpin for AccountPermissions
impl UnwindSafe for AccountPermissions
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