pub struct Collateral {
pub symbol: &'static str,
pub token: Address,
pub l1_decimals: u32,
pub asset: AssetId,
pub decimals: u32,
}Expand description
The collateral perps margin in, as each place names it.
Fields§
§symbol: &'static str§token: AddressThe ERC-20 on the network’s L1.
l1_decimals: u32The token’s decimals on its L1, which a deposit’s amount is counted in.
asset: AssetIdThe asset id the venue knows it by.
decimals: u32The decimals the venue counts it in, which a transfer or a withdrawal is signed in.
Trait Implementations§
Source§impl Clone for Collateral
impl Clone for Collateral
impl Copy for Collateral
Source§impl Debug for Collateral
impl Debug for Collateral
impl Eq for Collateral
Source§impl Hash for Collateral
impl Hash for Collateral
Source§impl PartialEq for Collateral
impl PartialEq for Collateral
impl StructuralPartialEq for Collateral
Auto Trait Implementations§
impl Freeze for Collateral
impl RefUnwindSafe for Collateral
impl Send for Collateral
impl Sync for Collateral
impl Unpin for Collateral
impl UnsafeUnpin for Collateral
impl UnwindSafe for Collateral
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.