Struct BalanceKey
pub struct BalanceKey {
pub venue_id: VenueId,
pub asset: Asset,
}Expand description
Key for balance lookup: (venue_id, asset).
Serializes as "venue_id/ASSET" (e.g. "coinbase/USD") so it can be
used as a JSON map key.
Fields§
§venue_id: VenueId§asset: AssetTrait Implementations§
§impl Clone for BalanceKey
impl Clone for BalanceKey
§fn clone(&self) -> BalanceKey
fn clone(&self) -> BalanceKey
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BalanceKey
impl Debug for BalanceKey
§impl<'de> Deserialize<'de> for BalanceKey
impl<'de> Deserialize<'de> for BalanceKey
§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
§impl Display for BalanceKey
impl Display for BalanceKey
§impl From<BalanceKey> for String
impl From<BalanceKey> for String
§fn from(k: BalanceKey) -> Self
fn from(k: BalanceKey) -> Self
Converts to this type from the input type.
§impl FromStr for BalanceKey
impl FromStr for BalanceKey
§impl Hash for BalanceKey
impl Hash for BalanceKey
§impl Ord for BalanceKey
impl Ord for BalanceKey
§impl PartialEq for BalanceKey
impl PartialEq for BalanceKey
§impl PartialOrd for BalanceKey
impl PartialOrd for BalanceKey
§impl Serialize for BalanceKey
impl Serialize for BalanceKey
§impl TryFrom<String> for BalanceKey
impl TryFrom<String> for BalanceKey
impl Eq for BalanceKey
impl StructuralPartialEq for BalanceKey
Auto Trait Implementations§
impl Freeze for BalanceKey
impl RefUnwindSafe for BalanceKey
impl Send for BalanceKey
impl Sync for BalanceKey
impl Unpin for BalanceKey
impl UnsafeUnpin for BalanceKey
impl UnwindSafe for BalanceKey
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)