referrerpolicy=no-referrer-when-downgrade
pallet_nfts

Type Alias PreSignedAttributesOf

Source
pub type PreSignedAttributesOf<T, I = ()> = PreSignedAttributes<<T as Config<I>>::CollectionId, <T as Config<I>>::ItemId, <T as SystemConfig>::AccountId, BlockNumberFor<T, I>>;
Expand description

A type alias for the pre-signed minting configuration on the attribute level of an item.

Aliased Type§

struct PreSignedAttributesOf<T, I = ()> {
    pub collection: <T as Config<I>>::CollectionId,
    pub item: <T as Config<I>>::ItemId,
    pub attributes: Vec<(Vec<u8>, Vec<u8>)>,
    pub namespace: AttributeNamespace<<T as Config>::AccountId>,
    pub deadline: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber,
}

Fields§

§collection: <T as Config<I>>::CollectionId

Collection’s ID.

§item: <T as Config<I>>::ItemId

Item’s ID.

§attributes: Vec<(Vec<u8>, Vec<u8>)>

Key-value attributes.

§namespace: AttributeNamespace<<T as Config>::AccountId>

Attributes’ namespace.

§deadline: <<T as Config<I>>::BlockNumberProvider as BlockNumberProvider>::BlockNumber

A deadline for the signature.

Trait Implementations

Source§

impl<CollectionId: Clone, ItemId: Clone, AccountId: Clone, Deadline: Clone> Clone for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>

Source§

fn clone( &self, ) -> PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>

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<CollectionId, ItemId, AccountId, Deadline> Debug for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>
where CollectionId: Debug, ItemId: Debug, AccountId: Debug, Deadline: Debug,

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<CollectionId, ItemId, AccountId, Deadline> Decode for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>
where CollectionId: Decode, ItemId: Decode, AttributeNamespace<AccountId>: Decode, Deadline: 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<CollectionId, ItemId, AccountId, Deadline> Encode for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>
where CollectionId: Encode, ItemId: Encode, AttributeNamespace<AccountId>: Encode, Deadline: 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>

Convert self to an owned vector.
§

fn using_encoded<R, F>(&self, f: F) -> R
where 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<CollectionId: PartialEq, ItemId: PartialEq, AccountId: PartialEq, Deadline: PartialEq> PartialEq for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>

Source§

fn eq( &self, other: &PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>, ) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<CollectionId, ItemId, AccountId, Deadline> TypeInfo for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>
where CollectionId: TypeInfo + 'static, ItemId: TypeInfo + 'static, AttributeNamespace<AccountId>: TypeInfo + 'static, Deadline: TypeInfo + 'static, AccountId: TypeInfo + 'static,

Source§

type Identity = PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>

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<CollectionId, ItemId, AccountId, Deadline> DecodeWithMemTracking for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>
where CollectionId: DecodeWithMemTracking, ItemId: DecodeWithMemTracking, AttributeNamespace<AccountId>: DecodeWithMemTracking, Deadline: DecodeWithMemTracking,

Source§

impl<CollectionId, ItemId, AccountId, Deadline> EncodeLike for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>
where CollectionId: Encode, ItemId: Encode, AttributeNamespace<AccountId>: Encode, Deadline: Encode,

Source§

impl<CollectionId: Eq, ItemId: Eq, AccountId: Eq, Deadline: Eq> Eq for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>

Source§

impl<CollectionId, ItemId, AccountId, Deadline> StructuralPartialEq for PreSignedAttributes<CollectionId, ItemId, AccountId, Deadline>