Type Alias kilt_runtime_api_did::RawDidLinkedInfo
source · 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,
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>
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<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,
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
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<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>
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
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 ==
.