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.

§authorization_id: Option<<T as Config>::AuthorizationId>

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>

source§

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)

Performs copy-assignment from source. Read more
source§

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§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
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,

source§

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,

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,

Attempt to skip the encoded value from input. Read more
§

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,

source§

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 )

Convert self to a slice and append it to the destination.
§

fn encode(&self) -> Vec<u8, Global>

Convert self to an owned vector.
§

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

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,

source§

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>

source§

fn cmp( &self, other: &CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> ) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. 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>

source§

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 ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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>

source§

fn partial_cmp( &self, other: &CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> ) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> TypeInfo for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where CTypeHash: TypeInfo + 'static, Attester: TypeInfo + 'static, BlockNumber: TypeInfo + 'static, Deposit<AccountId, Balance>: TypeInfo + 'static, Option<AuthorizationId>: TypeInfo + 'static, AccountId: TypeInfo + 'static, Balance: TypeInfo + 'static, AuthorizationId: TypeInfo + 'static,

§

type Identity = CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>

The type identifying for which type info is provided. Read more
source§

fn type_info() -> Type

Returns the static type identifier for Self.
source§

impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> EncodeLike<CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>> for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>where CTypeHash: Encode, Attester: Encode, BlockNumber: Encode, Deposit<AccountId, Balance>: Encode, Option<AuthorizationId>: Encode,

source§

impl<CTypeHash: Eq, Attester: Eq, BlockNumber: Eq, AccountId: Eq, Balance: Eq, AuthorizationId: Eq> Eq for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>

source§

impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> StructuralEq for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>

source§

impl<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId> StructuralPartialEq for CredentialEntry<CTypeHash, Attester, BlockNumber, AccountId, Balance, AuthorizationId>