Skip to main content

IotaNamesNft

Trait IotaNamesNft 

Source
pub trait IotaNamesNft {
    const MODULE: Identifier;
    const TYPE_NAME: Identifier;

    // Required methods
    fn name(&self) -> &Name;
    fn name_str(&self) -> &str;
    fn expiration_timestamp_ms(&self) -> u64;
    fn id(&self) -> ObjectId;

    // Provided methods
    fn type_(package_id: Address) -> StructTag { ... }
    fn expiration_time(&self) -> SystemTime { ... }
    fn has_expired(&self) -> bool { ... }
}
Expand description

Unifying trait for NameRegistration and SubnameRegistration

Required Associated Constants§

Source

const MODULE: Identifier

Source

const TYPE_NAME: Identifier

Required Methods§

Source

fn name(&self) -> &Name

Source

fn name_str(&self) -> &str

Source

fn expiration_timestamp_ms(&self) -> u64

Source

fn id(&self) -> ObjectId

Provided Methods§

Source

fn type_(package_id: Address) -> StructTag

Source

fn expiration_time(&self) -> SystemTime

Source

fn has_expired(&self) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl IotaNamesNft for NameRegistration

Source§

const MODULE: Identifier

Source§

const TYPE_NAME: Identifier

Source§

impl IotaNamesNft for SubnameRegistration

Source§

const MODULE: Identifier

Source§

const TYPE_NAME: Identifier