Type Alias public_credentials::pallet::CredentialEntryOf
source · pub type CredentialEntryOf<T> = CredentialEntry<CtypeHashOf<T>, AttesterOf<T>, BlockNumberFor<T>, AccountIdOf<T>, BalanceOf<T>, <T as Config>::AuthorizationId>;
Aliased Type§
struct CredentialEntryOf<T> {
pub ctype_hash: <T as Config>::Hash,
pub attester: <T as Config>::AttesterId,
pub revoked: bool,
pub block_number: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number,
pub deposit: Deposit<<T as Config>::AccountId, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>,
pub authorization_id: Option<<T as Config>::AuthorizationId>,
}
Fields§
§ctype_hash: <T as Config>::Hash
The hash of the CType used for this attestation.
attester: <T as Config>::AttesterId
The attester of the credential.
revoked: bool
A flag indicating the revocation status of the credential.
block_number: <<<T as Config>::Block as HeaderProvider>::HeaderT as Header>::Number
The block number in which the credential tx was evaluated and included in the block.
deposit: Deposit<<T as Config>::AccountId, <<T as Config>::Currency as Inspect<<T as Config>::AccountId>>::Balance>
The info about the credential deposit.
The ID of the authorization information (e.g., a delegation node) used to authorize the operation.
Trait Implementations§
source§impl<CTypeHash: Clone, Attester: Clone, BlockNumber: Clone, AccountId: Clone, Balance: Clone, AuthorizationId: Clone> Clone for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
impl<CTypeHash: Clone, Attester: Clone, BlockNumber: Clone, AccountId: Clone, Balance: Clone, AuthorizationId: Clone> Clone for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
source§fn clone(
&self
) -> CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
fn clone( &self ) -> CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
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<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> Debug for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where
CTypeHash: Debug,
Attester: Debug,
BlockNumber: Debug,
AccountId: Debug,
Balance: Debug,
AuthorizationId: Debug,
impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> Debug for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where CTypeHash: Debug, Attester: Debug, BlockNumber: Debug, AccountId: Debug, Balance: Debug, AuthorizationId: Debug,
source§impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> Decode for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where
CTypeHash: Decode,
Attester: Decode,
BlockNumber: Decode,
Deposit<AccountId, Balance>: Decode,
Option<AuthorizationId>: Decode,
impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> Decode for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where CTypeHash: Decode, Attester: Decode, BlockNumber: Decode, Deposit<AccountId, Balance>: Decode, Option<AuthorizationId>: Decode,
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.
§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
§fn 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
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> Encode for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where
CTypeHash: Encode,
Attester: Encode,
BlockNumber: Encode,
Deposit<AccountId, Balance>: Encode,
Option<AuthorizationId>: Encode,
impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> Encode for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where CTypeHash: Encode, Attester: Encode, BlockNumber: Encode, Deposit<AccountId, Balance>: Encode, Option<AuthorizationId>: Encode,
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.
§fn 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.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> MaxEncodedLen for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where
CTypeHash: MaxEncodedLen,
Attester: MaxEncodedLen,
BlockNumber: MaxEncodedLen,
Deposit<AccountId, Balance>: MaxEncodedLen,
Option<AuthorizationId>: MaxEncodedLen,
impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> MaxEncodedLen for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where CTypeHash: MaxEncodedLen, Attester: MaxEncodedLen, BlockNumber: MaxEncodedLen, Deposit<AccountId, Balance>: MaxEncodedLen, Option<AuthorizationId>: MaxEncodedLen,
source§fn max_encoded_len() -> usize
fn max_encoded_len() -> usize
Upper bound, in bytes, of the maximum encoded size of this item.
source§impl<CTypeHash: Ord, Attester: Ord, BlockNumber: Ord, AccountId: Ord, Balance: Ord, AuthorizationId: Ord> Ord for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
impl<CTypeHash: Ord, Attester: Ord, BlockNumber: Ord, AccountId: Ord, Balance: Ord, AuthorizationId: Ord> Ord for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
source§fn cmp(
&self,
other: &CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
) -> Ordering
fn cmp( &self, other: &CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> ) -> 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<CTypeHash: PartialEq, Attester: PartialEq, BlockNumber: PartialEq, AccountId: PartialEq, Balance: PartialEq, AuthorizationId: PartialEq> PartialEq<CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>> for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
impl<CTypeHash: PartialEq, Attester: PartialEq, BlockNumber: PartialEq, AccountId: PartialEq, Balance: PartialEq, AuthorizationId: PartialEq> PartialEq<CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>> for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
source§fn eq(
&self,
other: &CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
) -> bool
fn eq( &self, other: &CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> ) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<CTypeHash: PartialOrd, Attester: PartialOrd, BlockNumber: PartialOrd, AccountId: PartialOrd, Balance: PartialOrd, AuthorizationId: PartialOrd> PartialOrd<CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>> for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
impl<CTypeHash: PartialOrd, Attester: PartialOrd, BlockNumber: PartialOrd, AccountId: PartialOrd, Balance: PartialOrd, AuthorizationId: PartialOrd> PartialOrd<CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>> for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
source§fn partial_cmp(
&self,
other: &CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>
) -> Option<Ordering>
fn partial_cmp( &self, other: &CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> ) -> 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 more