pub type RawDidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber> = DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Vec<u8>, Vec<u8>, Vec<u8>, Vec<u8>, Balance, Key, BlockNumber>;
Expand description

The DidLinkedInfo with a Web3Name represented as a byte array.

This will be returned by the runtime and processed by the client side RPC implementation.

Aliased Type§

struct RawDidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Balance, Key, BlockNumber> {
    pub identifier: DidIdentifier,
    pub accounts: Vec<LinkableAccountId, Global>,
    pub w3n: Option<Vec<u8, Global>>,
    pub service_endpoints: Vec<ServiceEndpoint<Vec<u8, Global>, Vec<u8, Global>, Vec<u8, Global>>, Global>,
    pub details: DidDetails<Key, BlockNumber, AccountId, Balance>,
}

Fields§

§identifier: DidIdentifier§accounts: Vec<LinkableAccountId, Global>§w3n: Option<Vec<u8, Global>>§service_endpoints: Vec<ServiceEndpoint<Vec<u8, Global>, Vec<u8, Global>, Vec<u8, Global>>, Global>§details: DidDetails<Key, BlockNumber, AccountId, Balance>

Trait Implementations§

source§

impl<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key: Ord, BlockNumber> Decode for DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>where DidIdentifier: Decode, Vec<LinkableAccountId>: Decode, Option<Web3Name>: Decode, Vec<ServiceEndpoint<Id, Type, Url>>: Decode, DidDetails<Key, BlockNumber, AccountId, Balance>: 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<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key: Ord, BlockNumber> Encode for DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>where DidIdentifier: Encode, Vec<LinkableAccountId>: Encode, Option<Web3Name>: Encode, Vec<ServiceEndpoint<Id, Type, Url>>: Encode, DidDetails<Key, BlockNumber, AccountId, Balance>: 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<DidIdentifier: PartialEq, AccountId: PartialEq, LinkableAccountId: PartialEq, Web3Name: PartialEq, Id: PartialEq, Type: PartialEq, Url: PartialEq, Balance: PartialEq, Key: PartialEq + Ord, BlockNumber: PartialEq> PartialEq<DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>> for DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>

source§

fn eq( &self, other: &DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber> ) -> 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<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber> TypeInfo for DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>where DidIdentifier: TypeInfo + 'static, Vec<LinkableAccountId>: TypeInfo + 'static, Option<Web3Name>: TypeInfo + 'static, Vec<ServiceEndpoint<Id, Type, Url>>: TypeInfo + 'static, DidDetails<Key, BlockNumber, AccountId, Balance>: TypeInfo + 'static, AccountId: TypeInfo + 'static, LinkableAccountId: TypeInfo + 'static, Web3Name: TypeInfo + 'static, Id: TypeInfo + 'static, Type: TypeInfo + 'static, Url: TypeInfo + 'static, Balance: TypeInfo + 'static, Key: Ord + TypeInfo + 'static, BlockNumber: TypeInfo + 'static,

§

type Identity = DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>

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<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key: Ord, BlockNumber> EncodeLike<DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>> for DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>where DidIdentifier: Encode, Vec<LinkableAccountId>: Encode, Option<Web3Name>: Encode, Vec<ServiceEndpoint<Id, Type, Url>>: Encode, DidDetails<Key, BlockNumber, AccountId, Balance>: Encode,

source§

impl<DidIdentifier: Eq, AccountId: Eq, LinkableAccountId: Eq, Web3Name: Eq, Id: Eq, Type: Eq, Url: Eq, Balance: Eq, Key: Eq + Ord, BlockNumber: Eq> Eq for DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>

source§

impl<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key: Ord, BlockNumber> StructuralEq for DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>

source§

impl<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key: Ord, BlockNumber> StructuralPartialEq for DidLinkedInfo<DidIdentifier, AccountId, LinkableAccountId, Web3Name, Id, Type, Url, Balance, Key, BlockNumber>