Struct polymesh_api_ink::basic_types::IdentityId
source · pub struct IdentityId(pub [u8; 32]);Tuple Fields§
§0: [u8; 32]Trait Implementations§
source§impl Clone for IdentityId
impl Clone for IdentityId
source§fn clone(&self) -> IdentityId
fn clone(&self) -> IdentityId
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 IdentityId
impl Debug for IdentityId
source§impl Decode for IdentityId
impl Decode for IdentityId
source§fn 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.
source§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
source§impl Default for IdentityId
impl Default for IdentityId
source§fn default() -> IdentityId
fn default() -> IdentityId
Returns the “default value” for a type. Read more
source§impl Encode for IdentityId
impl Encode for IdentityId
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn 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.
source§fn 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.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl Ord for IdentityId
impl Ord for IdentityId
source§fn cmp(&self, other: &IdentityId) -> Ordering
fn cmp(&self, other: &IdentityId) -> Ordering
1.21.0 · source§fn 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
source§impl PackedLayout for IdentityId
impl PackedLayout for IdentityId
source§fn 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 moresource§fn 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 moresource§fn 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 moresource§impl PartialEq<IdentityId> for IdentityId
impl PartialEq<IdentityId> for IdentityId
source§fn eq(&self, other: &IdentityId) -> bool
fn eq(&self, other: &IdentityId) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<IdentityId> for IdentityId
impl PartialOrd<IdentityId> for IdentityId
source§fn partial_cmp(&self, other: &IdentityId) -> Option<Ordering>
fn partial_cmp(&self, other: &IdentityId) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl SpreadAllocate for IdentityId
impl SpreadAllocate for IdentityId
source§fn 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
source§impl SpreadLayout for IdentityId
impl SpreadLayout for IdentityId
source§const 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 moresource§fn 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 moresource§fn 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 moresource§fn 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 moresource§impl StorageLayout for IdentityId
impl StorageLayout for IdentityId
source§impl 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§
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
source§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> SaturatedConversion for T
impl<T> SaturatedConversion for T
source§fn saturated_from<T>(t: T) -> Selfwhere
Self: UniqueSaturatedFrom<T>,
fn saturated_from<T>(t: T) -> Selfwhere Self: UniqueSaturatedFrom<T>,
source§fn 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 more§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.source§impl<T, S> UniqueSaturatedInto<T> for Swhere
T: Bounded,
S: TryInto<T>,
impl<T, S> UniqueSaturatedInto<T> for Swhere T: Bounded, S: TryInto<T>,
source§fn unique_saturated_into(self) -> T
fn unique_saturated_into(self) -> T
Consume self to return an equivalent value of
T.