[][src]Enum schemeguardian::global::Lease

pub enum Lease {
    DateExpiryTAI(TAI64N),
    Lifetime,
    OnDownload,
    OnUpload,
    OnDisconnection,
    UnSpecified,
}

A an expiry date to lease a secret

Example

use schemeguardian::global::Lease;
let foo = Lease::Lifetime;
assert_eq!(foo, Lease::Lifetime);

Variants

DateExpiryTAI(TAI64N)

Has an expiry date of DateTime

Lifetime

This is a lease to a secret that will never expire

OnDownload

This is a lease to a secret that will expire after the download is completed

OnUpload

This is a lease to a secret that will expire after the upload is completed

OnDisconnection

This is a lease to a secret that will expire after the network is disconnected

UnSpecified

The lease time has not been specified by the user

Trait Implementations

impl Clone for Lease[src]

impl Default for Lease[src]

impl Eq for Lease[src]

impl PartialEq<Lease> for Lease[src]

impl PartialOrd<Lease> for Lease[src]

impl Debug for Lease[src]

impl StructuralPartialEq for Lease[src]

impl StructuralEq for Lease[src]

impl Serialize for Lease[src]

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

Auto Trait Implementations

impl Send for Lease

impl Sync for Lease

impl Unpin for Lease

impl UnwindSafe for Lease

impl RefUnwindSafe for Lease

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,