Type Definition runtime::types::VaultId

source ·
pub type VaultId = VaultId<AccountId, CurrencyId>;

Implementations§

source§

impl VaultId

source

pub fn new( account_id: AccountId, collateral_currency: CurrencyId, wrapped_currency: CurrencyId ) -> Self

source

pub fn collateral_currency(&self) -> CurrencyId

source

pub fn wrapped_currency(&self) -> CurrencyId

Trait Implementations§

source§

impl<'de> Deserialize<'de> for VaultId

source§

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

source§

fn from(value: VaultId<AccountId, CurrencyId>) -> Self

Converts to this type from the input type.
source§

impl Hash for VaultId

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PrettyPrint for VaultId

source§

impl Serialize for VaultId

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more