Enum substrate_api_client::extrinsic::xt_primitives::MultiAddress [−][src]
pub enum MultiAddress<AccountId, AccountIndex> {
Id(AccountId),
Index(AccountIndex),
Raw(Vec<u8, Global>),
Address32([u8; 32]),
Address20([u8; 20]),
}Expand description
A multi-format address wrapper for on-chain accounts.
Variants
It’s an account ID (pubkey).
It’s an account index.
It’s some arbitrary raw bytes.
It’s a 32 byte representation.
Its a 20 byte representation.
Trait Implementations
impl<AccountId, AccountIndex> Clone for MultiAddress<AccountId, AccountIndex> where
AccountId: Clone,
AccountIndex: Clone,
impl<AccountId, AccountIndex> Clone for MultiAddress<AccountId, AccountIndex> where
AccountId: Clone,
AccountIndex: Clone, impl<AccountId, AccountIndex> Debug for MultiAddress<AccountId, AccountIndex> where
AccountId: Debug,
AccountIndex: Debug,
impl<AccountId, AccountIndex> Debug for MultiAddress<AccountId, AccountIndex> where
AccountId: Debug,
AccountIndex: Debug, impl<AccountId, AccountIndex> Decode for MultiAddress<AccountId, AccountIndex> where
AccountId: Decode,
AccountIndex: HasCompact,
impl<AccountId, AccountIndex> Decode for MultiAddress<AccountId, AccountIndex> where
AccountId: Decode,
AccountIndex: HasCompact, impl<AccountId, AccountIndex> Default for MultiAddress<AccountId, AccountIndex> where
AccountId: Default,
impl<AccountId, AccountIndex> Default for MultiAddress<AccountId, AccountIndex> where
AccountId: Default, Returns the “default value” for a type. Read more
impl<AccountId, AccountIndex> Display for MultiAddress<AccountId, AccountIndex> where
AccountId: Debug,
AccountIndex: Debug,
impl<AccountId, AccountIndex> Display for MultiAddress<AccountId, AccountIndex> where
AccountId: Debug,
AccountIndex: Debug, impl<AccountId, AccountIndex> Encode for MultiAddress<AccountId, AccountIndex> where
AccountId: Encode,
AccountIndex: HasCompact,
impl<AccountId, AccountIndex> Encode for MultiAddress<AccountId, AccountIndex> where
AccountId: Encode,
AccountIndex: HasCompact, Performs the conversion.
impl<AccountId, AccountIndex> Hash for MultiAddress<AccountId, AccountIndex> where
AccountId: Hash,
AccountIndex: Hash,
impl<AccountId, AccountIndex> Hash for MultiAddress<AccountId, AccountIndex> where
AccountId: Hash,
AccountIndex: Hash, impl<AccountId, AccountIndex> PartialEq<MultiAddress<AccountId, AccountIndex>> for MultiAddress<AccountId, AccountIndex> where
AccountId: PartialEq<AccountId>,
AccountIndex: PartialEq<AccountIndex>,
impl<AccountId, AccountIndex> PartialEq<MultiAddress<AccountId, AccountIndex>> for MultiAddress<AccountId, AccountIndex> where
AccountId: PartialEq<AccountId>,
AccountIndex: PartialEq<AccountIndex>, This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
impl<AccountId, AccountIndex> EncodeLike<MultiAddress<AccountId, AccountIndex>> for MultiAddress<AccountId, AccountIndex> where
AccountId: Encode,
AccountIndex: HasCompact, impl<AccountId, AccountIndex> Eq for MultiAddress<AccountId, AccountIndex> where
AccountId: Eq,
AccountIndex: Eq, Auto Trait Implementations
impl<AccountId, AccountIndex> RefUnwindSafe for MultiAddress<AccountId, AccountIndex> where
AccountId: RefUnwindSafe,
AccountIndex: RefUnwindSafe, impl<AccountId, AccountIndex> Send for MultiAddress<AccountId, AccountIndex> where
AccountId: Send,
AccountIndex: Send, impl<AccountId, AccountIndex> Sync for MultiAddress<AccountId, AccountIndex> where
AccountId: Sync,
AccountIndex: Sync, impl<AccountId, AccountIndex> Unpin for MultiAddress<AccountId, AccountIndex> where
AccountId: Unpin,
AccountIndex: Unpin, impl<AccountId, AccountIndex> UnwindSafe for MultiAddress<AccountId, AccountIndex> where
AccountId: UnwindSafe,
AccountIndex: UnwindSafe, Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash, Compare self to key and return true if they are equal.
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>, Convert from a value of T into an equivalent instance of Self. Read more
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>, Consume self to return an equivalent value of T. Read more
The counterpart to unchecked_from.
pub fn unique_saturated_into(self) -> T
pub fn unique_saturated_into(self) -> TConsume self to return an equivalent value of T.
pub fn vzip(self) -> Vimpl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeDebug for T where
T: Debug, impl<T> MaybeHash for T where
T: Hash, impl<T> MaybeRefUnwindSafe for T where
T: RefUnwindSafe,