pub struct AccountConfig {
pub api_key: String,
pub api_secret: String,
pub balances: Vec<AccountBalance>,
pub positions: Vec<Position>,
}Expand description
Declarative account bootstrap configuration.
Fields§
§api_key: String§api_secret: String§balances: Vec<AccountBalance>§positions: Vec<Position>Implementations§
Source§impl AccountConfig
impl AccountConfig
pub fn new(api_key: impl Into<String>, api_secret: impl Into<String>) -> Self
pub fn with_balance(self, balance: AccountBalance) -> Self
pub fn with_position(self, position: Position) -> Self
Trait Implementations§
Source§impl Clone for AccountConfig
impl Clone for AccountConfig
Source§fn clone(&self) -> AccountConfig
fn clone(&self) -> AccountConfig
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 moreAuto Trait Implementations§
impl Freeze for AccountConfig
impl RefUnwindSafe for AccountConfig
impl Send for AccountConfig
impl Sync for AccountConfig
impl Unpin for AccountConfig
impl UnwindSafe for AccountConfig
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