pub enum Purpose {
Available,
Escrow {
peer_cell: Did,
},
IssuerLiability,
Remote {
home_cell: Did,
},
Bond,
}Expand description
What an account is for. The purpose participates in the account id, so two accounts of the same owner/unit but different purpose are distinct rows.
Variants§
Available
Spendable balance held by an owner.
Escrow
Funds escrowed toward a peer cell (home side of a tranche, §2f).
IssuerLiability
The issuer’s own liability account — issuance debits this (INV-1). Grows as supply is issued; the “money supply” per unit is this balance.
Remote
Remotely-funded spendable balance (remote side of a tranche, §2f).
Bond
A posted bond (Phase 3 slashing collateral); modelled as a ledger account so a slash is just a transfer to the injured party.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Purpose
impl<'de> Deserialize<'de> for Purpose
Source§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
Source§impl Ord for Purpose
impl Ord for Purpose
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Purpose
impl PartialOrd for Purpose
impl Eq for Purpose
impl StructuralPartialEq for Purpose
Auto Trait Implementations§
impl Freeze for Purpose
impl RefUnwindSafe for Purpose
impl Send for Purpose
impl Sync for Purpose
impl Unpin for Purpose
impl UnsafeUnpin for Purpose
impl UnwindSafe for Purpose
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