Trait IotaNamesNft

Source
pub trait IotaNamesNft {
    const MODULE: &IdentStr;
    const TYPE_NAME: &IdentStr;

    // Required methods
    fn domain(&self) -> &Domain;
    fn domain_name(&self) -> &str;
    fn expiration_timestamp_ms(&self) -> u64;
    fn id(&self) -> ObjectID;

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

Required Associated Constants§

Source

const MODULE: &IdentStr

Source

const TYPE_NAME: &IdentStr

Required Methods§

Source

fn domain(&self) -> &Domain

Source

fn domain_name(&self) -> &str

Source

fn expiration_timestamp_ms(&self) -> u64

Source

fn id(&self) -> ObjectID

Provided Methods§

Source

fn type_(package_id: AccountAddress) -> 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§