pub struct DctTokenData<BigUint: BigUintApi> {
    pub token_type: DctTokenType,
    pub amount: BigUint,
    pub frozen: bool,
    pub hash: H256,
    pub name: BoxedBytes,
    pub attributes: BoxedBytes,
    pub creator: Address,
    pub royalties: BigUint,
    pub uris: Vec<BoxedBytes>,
}

Fields§

§token_type: DctTokenType§amount: BigUint§frozen: bool§hash: H256§name: BoxedBytes§attributes: BoxedBytes§creator: Address§royalties: BigUint§uris: Vec<BoxedBytes>

Implementations§

source§

impl<BigUint: BigUintApi> DctTokenData<BigUint>

Trait Implementations§

source§

impl<BigUint: BigUintApi> NestedDecode for DctTokenData<BigUint>

source§

fn dep_decode<I: NestedDecodeInput>(input: &mut I) -> Result<Self, DecodeError>

Attempt to deserialise the value from input, using the format of an object nested inside another structure. In case of success returns the deserialized value and the number of bytes consumed during the operation.
source§

fn dep_decode_or_exit<I: NestedDecodeInput, ExitCtx: Clone>( input: &mut I, c: ExitCtx, exit: fn(_: ExitCtx, _: DecodeError) -> ! ) -> Self

Version of top_decode that exits quickly in case of error. Its purpose is to create smaller implementations in cases where the application is supposed to exit directly on decode error.
source§

impl<BigUint: BigUintApi> NestedEncode for DctTokenData<BigUint>

source§

fn dep_encode<O: NestedEncodeOutput>( &self, dest: &mut O ) -> Result<(), EncodeError>

NestedEncode to output, using the format of an object nested inside another structure. Does not provide compact version.
source§

fn dep_encode_or_exit<O: NestedEncodeOutput, ExitCtx: Clone>( &self, dest: &mut O, c: ExitCtx, exit: fn(_: ExitCtx, _: EncodeError) -> ! )

Version of top_decode that exits quickly in case of error. Its purpose is to create smaller implementations in cases where the application is supposed to exit directly on decode error.
source§

impl<BigUint: BigUintApi> TopDecode for DctTokenData<BigUint>

source§

fn top_decode<I: TopDecodeInput>(input: I) -> Result<Self, DecodeError>

Attempt to deserialize the value from input.
source§

fn top_decode_or_exit<I: TopDecodeInput, ExitCtx: Clone>( input: I, c: ExitCtx, exit: fn(_: ExitCtx, _: DecodeError) -> ! ) -> Self

Version of top_decode that exits quickly in case of error. Its purpose is to create smaller implementations in cases where the application is supposed to exit directly on decode error.
source§

impl<BigUint: BigUintApi> TopEncode for DctTokenData<BigUint>

source§

fn top_encode<O: TopEncodeOutput>(&self, output: O) -> Result<(), EncodeError>

Attempt to serialize the value to ouput.
source§

fn top_encode_or_exit<O: TopEncodeOutput, ExitCtx: Clone>( &self, output: O, c: ExitCtx, exit: fn(_: ExitCtx, _: EncodeError) -> ! )

Version of top_decode that exits quickly in case of error. Its purpose is to create smaller bytecode implementations in cases where the application is supposed to exit directly on decode error.
source§

impl<BigUint: BigUintApi> TypeAbi for DctTokenData<BigUint>

source§

fn type_name() -> String

source§

fn provide_type_descriptions<TDC: TypeDescriptionContainer>( accumulator: &mut TDC )

A type can provide more than its own description. For instance, a struct can also provide the descriptions of the type of its fields. TypeAbi doesn’t care for the exact accumulator type, which is abstracted by the TypeDescriptionContainer trait.

Auto Trait Implementations§

§

impl<BigUint> RefUnwindSafe for DctTokenData<BigUint>
where BigUint: RefUnwindSafe,

§

impl<BigUint> Send for DctTokenData<BigUint>
where BigUint: Send,

§

impl<BigUint> Sync for DctTokenData<BigUint>
where BigUint: Sync,

§

impl<BigUint> Unpin for DctTokenData<BigUint>
where BigUint: Unpin,

§

impl<BigUint> UnwindSafe for DctTokenData<BigUint>
where BigUint: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> ContractCallArg for T
where T: TopEncode,

source§

fn push_async_arg(&self, serializer: &mut ArgBuffer) -> Result<(), SCError>

source§

impl<T> DynArg for T
where T: TopDecode,

source§

fn dyn_load<I, D>(loader: &mut D, arg_id: ArgId) -> T
where I: TopDecodeInput, D: DynArgInput<I>,

source§

impl<FA, T> EndpointResult<FA> for T
where FA: EndpointFinishApi + ErrorApi + Clone + 'static, T: TopEncode,

source§

fn finish(&self, api: FA)

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.