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
Unifying trait for IotaNamesRegistration
and SubdomainRegistration
Required Associated Constants§
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
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.