[][src]Enum cw721::Expiration

pub enum Expiration {
    AtHeight(u64),
    AtTime(u64),
    Never {},
}

Variants

AtHeight(u64)

AtHeight will expire when env.block.height >= height

AtTime(u64)

AtTime will expire when env.block.time >= time

Never

Never will never expire. Used to express the empty variant

Fields of Never

Implementations

impl Expiration[src]

pub fn is_expired(&self, block: &BlockInfo) -> bool[src]

Trait Implementations

impl Clone for Expiration[src]

impl Debug for Expiration[src]

impl Default for Expiration[src]

The default (empty value) is to never expire

impl<'de> Deserialize<'de> for Expiration[src]

impl Display for Expiration[src]

impl JsonSchema for Expiration[src]

impl PartialEq<Expiration> for Expiration[src]

impl Serialize for Expiration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.