pub struct UnspecifiedAccountIdentifier([u8; 32]);
Expand description
This is either an single account or a multisig account depending on the witness type
Tuple Fields§
§0: [u8; 32]
Implementations§
source§impl UnspecifiedAccountIdentifier
impl UnspecifiedAccountIdentifier
pub fn to_single_account(&self) -> Option<Identifier>
pub fn to_multi_account(&self) -> Identifier
pub fn from_single_account(identifier: Identifier) -> Self
pub fn from_multi_account(identifier: Identifier) -> Self
Trait Implementations§
source§impl Arbitrary for UnspecifiedAccountIdentifier
impl Arbitrary for UnspecifiedAccountIdentifier
source§impl Arbitrary for UnspecifiedAccountIdentifier
impl Arbitrary for UnspecifiedAccountIdentifier
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = BoxedStrategy<UnspecifiedAccountIdentifier>
type Strategy = BoxedStrategy<UnspecifiedAccountIdentifier>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
fn arbitrary_with(args: <Self as Arbitrary>::Parameters) -> Self::Strategy
source§impl AsRef<[u8]> for UnspecifiedAccountIdentifier
impl AsRef<[u8]> for UnspecifiedAccountIdentifier
source§impl Clone for UnspecifiedAccountIdentifier
impl Clone for UnspecifiedAccountIdentifier
source§fn clone(&self) -> UnspecifiedAccountIdentifier
fn clone(&self) -> UnspecifiedAccountIdentifier
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UnspecifiedAccountIdentifier
impl Debug for UnspecifiedAccountIdentifier
source§impl From<UnspecifiedAccountIdentifier> for [u8; 32]
impl From<UnspecifiedAccountIdentifier> for [u8; 32]
source§fn from(v: UnspecifiedAccountIdentifier) -> Self
fn from(v: UnspecifiedAccountIdentifier) -> Self
Converts to this type from the input type.
source§impl Hash for UnspecifiedAccountIdentifier
impl Hash for UnspecifiedAccountIdentifier
source§impl PartialEq<UnspecifiedAccountIdentifier> for UnspecifiedAccountIdentifier
impl PartialEq<UnspecifiedAccountIdentifier> for UnspecifiedAccountIdentifier
source§fn eq(&self, other: &UnspecifiedAccountIdentifier) -> bool
fn eq(&self, other: &UnspecifiedAccountIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for UnspecifiedAccountIdentifier
impl StructuralEq for UnspecifiedAccountIdentifier
impl StructuralPartialEq for UnspecifiedAccountIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for UnspecifiedAccountIdentifier
impl Send for UnspecifiedAccountIdentifier
impl Sync for UnspecifiedAccountIdentifier
impl Unpin for UnspecifiedAccountIdentifier
impl UnwindSafe for UnspecifiedAccountIdentifier
Blanket Implementations§
§impl<T> Base32Len for Twhere
T: AsRef<[u8]>,
impl<T> Base32Len for Twhere T: AsRef<[u8]>,
§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)