Struct polymesh_api_ink::basic_types::AccountId
source · [−]pub struct AccountId(_);
Expand description
The default environment AccountId
type.
Note
This is a mirror of the AccountId
type used in the default configuration
of PALLET contracts.
Trait Implementations
sourceimpl Decode for AccountId
impl Decode for AccountId
sourcefn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<AccountId, Error>where
__CodecInputEdqy: Input,
fn decode<__CodecInputEdqy>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<AccountId, Error>where
__CodecInputEdqy: Input,
Attempt to deserialise the value from input.
sourcefn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
sourcefn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
sourceimpl Encode for AccountId
impl Encode for AccountId
sourcefn encode_to<__CodecOutputEdqy>(&self, __codec_dest_edqy: &mut __CodecOutputEdqy)where
__CodecOutputEdqy: Output + ?Sized,
fn encode_to<__CodecOutputEdqy>(&self, __codec_dest_edqy: &mut __CodecOutputEdqy)where
__CodecOutputEdqy: Output + ?Sized,
Convert self to a slice and append it to the destination.
sourcefn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
sourcefn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
sourcefn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
sourceimpl Ord for AccountId
impl Ord for AccountId
1.21.0 · sourcefn 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
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PackedAllocate for AccountId
impl PackedAllocate for AccountId
sourcefn allocate_packed(&mut self, _at: &Key)
fn allocate_packed(&mut self, _at: &Key)
Indicates to
self
that is has just been allocated to the storage. Read moresourceimpl PackedLayout for AccountId
impl PackedLayout for AccountId
sourcefn pull_packed(&mut self, _at: &Key)
fn pull_packed(&mut self, _at: &Key)
Indicates to
self
that is has just been pulled from the storage. Read moresourcefn push_packed(&self, _at: &Key)
fn push_packed(&self, _at: &Key)
Indicates to
self
that it is about to be pushed to contract storage. Read moresourcefn clear_packed(&self, _at: &Key)
fn clear_packed(&self, _at: &Key)
Indicates to
self
that it is about to be cleared from contract storage. Read moresourceimpl PartialOrd<AccountId> for AccountId
impl PartialOrd<AccountId> for AccountId
sourcefn partial_cmp(&self, other: &AccountId) -> Option<Ordering>
fn partial_cmp(&self, other: &AccountId) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl SpreadAllocate for AccountIdwhere
AccountId: PackedLayout + Default,
impl SpreadAllocate for AccountIdwhere
AccountId: PackedLayout + Default,
sourcefn allocate_spread(ptr: &mut KeyPtr) -> AccountId
fn allocate_spread(ptr: &mut KeyPtr) -> AccountId
Default initializes the implementing type using spread layout. Read more
sourceimpl SpreadLayout for AccountIdwhere
AccountId: PackedLayout,
impl SpreadLayout for AccountIdwhere
AccountId: PackedLayout,
sourceconst REQUIRES_DEEP_CLEAN_UP: bool = false
const REQUIRES_DEEP_CLEAN_UP: bool = false
Indicates whether a type requires deep clean-up of its state meaning that
a clean-up routine has to decode an entity into an instance in order to
eventually recurse upon its tear-down.
This is not required for the majority of primitive data types such as
i32
,
however types such as storage::Box
that might want to forward the clean-up
procedure to their inner T
require a deep clean-up. Read moresourcefn pull_spread(ptr: &mut KeyPtr) -> AccountId
fn pull_spread(ptr: &mut KeyPtr) -> AccountId
Pulls an instance of
Self
from the contract storage. Read moresourcefn push_spread(&self, ptr: &mut KeyPtr)
fn push_spread(&self, ptr: &mut KeyPtr)
Pushes an instance of
Self
to the contract storage. Read moresourcefn clear_spread(&self, ptr: &mut KeyPtr)
fn clear_spread(&self, ptr: &mut KeyPtr)
Clears an instance of
Self
from the contract storage. Read moresourceimpl StorageLayout for AccountId
impl StorageLayout for AccountId
sourceimpl<'a> TryFrom<&'a [u8]> for AccountId
impl<'a> TryFrom<&'a [u8]> for AccountId
type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
impl Copy for AccountId
impl EncodeLike<AccountId> for AccountId
impl Eq for AccountId
impl StructuralEq for AccountId
impl StructuralPartialEq for AccountId
Auto Trait Implementations
impl RefUnwindSafe for AccountId
impl Send for AccountId
impl Sync for AccountId
impl Unpin for AccountId
impl UnwindSafe for AccountId
Blanket Implementations
impl<U> AsMutSliceOf for Uwhere
U: AsMut<[u8]> + ?Sized,
impl<U> AsMutSliceOf for Uwhere
U: AsMut<[u8]> + ?Sized,
fn as_mut_slice_of<T>(&mut self) -> Result<&mut [T], Error>where
T: FromByteSlice,
impl<U> AsSliceOf for Uwhere
U: AsRef<[u8]> + ?Sized,
impl<U> AsSliceOf for Uwhere
U: AsRef<[u8]> + ?Sized,
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
sourceimpl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
sourcefn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
sourcefn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
fn saturated_into<T>(self) -> Twhere
Self: UniqueSaturatedInto<T>,
Consume self to return an equivalent value of
T
. Read moresourceimpl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
sourcefn 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
) Read moresourcefn 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
) Read moresourceimpl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
sourcefn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T
.