pub struct Usable {
pub amount: Dec,
pub token: u32,
pub from: Source,
pub borrowable: Dec,
}Expand description
What an account can put on a surface, and where that sits.
Fields§
§amount: Dec§token: u32The token it is counted in.
from: Source§borrowable: DecPortfolio margin: the part of amount that would be borrowed.
Trait Implementations§
impl Eq for Usable
impl StructuralPartialEq for Usable
Auto Trait Implementations§
impl Freeze for Usable
impl RefUnwindSafe for Usable
impl Send for Usable
impl Sync for Usable
impl Unpin for Usable
impl UnsafeUnpin for Usable
impl UnwindSafe for Usable
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
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,
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
Compare self to
key and return true if they are equal.