Struct polymesh_api_ink::basic_types::IdentityId
source · [−]Tuple Fields
0: [u8; 32]
Trait Implementations
sourceimpl Clone for IdentityId
impl Clone for IdentityId
sourcefn clone(&self) -> IdentityId
fn clone(&self) -> IdentityId
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for IdentityId
impl Debug for IdentityId
sourceimpl Decode for IdentityId
impl Decode for IdentityId
sourcefn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
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 Default for IdentityId
impl Default for IdentityId
sourcefn default() -> IdentityId
fn default() -> IdentityId
Returns the “default value” for a type. Read more
sourceimpl Encode for IdentityId
impl Encode for IdentityId
sourcefn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
Convert self to a slice and append it to the destination.
sourcefn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> R
fn using_encoded<R, F: FnOnce(&[u8]) -> R>(&self, f: F) -> 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 From<[u8; 32]> for IdentityId
impl From<[u8; 32]> for IdentityId
sourceimpl Ord for IdentityId
impl Ord for IdentityId
sourcefn cmp(&self, other: &IdentityId) -> Ordering
fn cmp(&self, other: &IdentityId) -> Ordering
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 PackedLayout for IdentityId
impl PackedLayout for IdentityId
sourcefn pull_packed(&mut self, __key: &Key)
fn pull_packed(&mut self, __key: &Key)
Indicates to
self
that is has just been pulled from the storage. Read moresourcefn push_packed(&self, __key: &Key)
fn push_packed(&self, __key: &Key)
Indicates to
self
that it is about to be pushed to contract storage. Read moresourcefn clear_packed(&self, __key: &Key)
fn clear_packed(&self, __key: &Key)
Indicates to
self
that it is about to be cleared from contract storage. Read moresourceimpl PartialEq<IdentityId> for IdentityId
impl PartialEq<IdentityId> for IdentityId
sourcefn eq(&self, other: &IdentityId) -> bool
fn eq(&self, other: &IdentityId) -> bool
sourceimpl PartialOrd<IdentityId> for IdentityId
impl PartialOrd<IdentityId> for IdentityId
sourcefn partial_cmp(&self, other: &IdentityId) -> Option<Ordering>
fn partial_cmp(&self, other: &IdentityId) -> 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 IdentityId
impl SpreadAllocate for IdentityId
sourcefn allocate_spread(__key_ptr: &mut KeyPtr) -> Self
fn allocate_spread(__key_ptr: &mut KeyPtr) -> Self
Default initializes the implementing type using spread layout. Read more
sourceimpl SpreadLayout for IdentityId
impl SpreadLayout for IdentityId
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(__key_ptr: &mut KeyPtr) -> Self
fn pull_spread(__key_ptr: &mut KeyPtr) -> Self
Pulls an instance of
Self
from the contract storage. Read moresourcefn push_spread(&self, __key_ptr: &mut KeyPtr)
fn push_spread(&self, __key_ptr: &mut KeyPtr)
Pushes an instance of
Self
to the contract storage. Read moresourcefn clear_spread(&self, __key_ptr: &mut KeyPtr)
fn clear_spread(&self, __key_ptr: &mut KeyPtr)
Clears an instance of
Self
from the contract storage. Read moresourceimpl StorageLayout for IdentityId
impl StorageLayout for IdentityId
sourceimpl TypeInfo for IdentityId
impl TypeInfo for IdentityId
impl Copy for IdentityId
impl EncodeLike<IdentityId> for IdentityId
impl Eq for IdentityId
impl StructuralEq for IdentityId
impl StructuralPartialEq for IdentityId
Auto Trait Implementations
impl RefUnwindSafe for IdentityId
impl Send for IdentityId
impl Sync for IdentityId
impl Unpin for IdentityId
impl UnwindSafe for IdentityId
Blanket Implementations
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, 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
.