pub struct AccountPolicy {
pub order: Vec<String>,
pub mode: AccountPolicyMode,
pub threshold_pct: Option<u8>,
pub reserve_pct: Option<u8>,
pub account_reserve_pct: HashMap<String, u8>,
pub allow_mid_thread_failover: bool,
pub disabled: Vec<String>,
}Fields§
§order: Vec<String>§mode: AccountPolicyMode§threshold_pct: Option<u8>§reserve_pct: Option<u8>§account_reserve_pct: HashMap<String, u8>§allow_mid_thread_failover: bool§disabled: Vec<String>Trait Implementations§
Source§impl Clone for AccountPolicy
impl Clone for AccountPolicy
Source§fn clone(&self) -> AccountPolicy
fn clone(&self) -> AccountPolicy
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 AccountPolicy
impl Debug for AccountPolicy
Source§impl Default for AccountPolicy
impl Default for AccountPolicy
Source§impl<'de> Deserialize<'de> for AccountPolicy
impl<'de> Deserialize<'de> for AccountPolicy
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 AccountPolicy
impl RefUnwindSafe for AccountPolicy
impl Send for AccountPolicy
impl Sync for AccountPolicy
impl Unpin for AccountPolicy
impl UnsafeUnpin for AccountPolicy
impl UnwindSafe for AccountPolicy
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