pub struct Account { /* private fields */ }Expand description
One account as the venue last told it.
Implementations§
Source§impl Account
impl Account
Sourcepub const fn standing(&self) -> &Standing
pub const fn standing(&self) -> &Standing
The mode, the dexes and spot together, which usable balances and worth are read from.
Sourcepub const fn mode(&self) -> Option<&Stamped<Abstraction>>
pub const fn mode(&self) -> Option<&Stamped<Abstraction>>
None until the socket or a read says.
pub const fn spot(&self) -> Option<&Stamped<SpotState>>
Sourcepub fn dex(&self, dex: &str) -> Option<&Stamped<ClearinghouseState>>
pub fn dex(&self, dex: &str) -> Option<&Stamped<ClearinghouseState>>
One dex’s clearinghouse, "" the first.
Sourcepub fn dexes(
&self,
) -> impl Iterator<Item = (&str, &Stamped<ClearinghouseState>)>
pub fn dexes( &self, ) -> impl Iterator<Item = (&str, &Stamped<ClearinghouseState>)>
Every dex told of, the first first.
Sourcepub fn orders(&self, dex: &str) -> Option<&Stamped<Vec<FrontendOrder>>>
pub fn orders(&self, dex: &str) -> Option<&Stamped<Vec<FrontendOrder>>>
The resting orders on one dex.
Sourcepub fn all_orders(&self) -> impl Iterator<Item = &FrontendOrder>
pub fn all_orders(&self) -> impl Iterator<Item = &FrontendOrder>
Every resting order, dex by dex, each dex’s in the venue’s order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
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