pub type VaultId = VaultId<AccountId, CurrencyId>;
Implementations§
source§impl VaultId
impl VaultId
pub fn new( account_id: AccountId, collateral_currency: CurrencyId, wrapped_currency: CurrencyId ) -> Self
pub fn collateral_currency(&self) -> CurrencyId
pub fn wrapped_currency(&self) -> CurrencyId
Trait Implementations§
source§impl<'de> Deserialize<'de> for VaultId
impl<'de> Deserialize<'de> for VaultId
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 From<VaultId<AccountId32, CurrencyId>> for VaultId
impl From<VaultId<AccountId32, CurrencyId>> for VaultId
source§fn from(value: VaultId<AccountId, CurrencyId>) -> Self
fn from(value: VaultId<AccountId, CurrencyId>) -> Self
Converts to this type from the input type.