Struct ockam::Lease[][src]

pub struct Lease<T> where
    T: DeserializeOwned + Serialize
{ pub id: [u8; 16], pub issued: u64, pub renewable: bool, pub tags: Vec<String>, pub value: T, }

A lease for managing secrets

Fields

id: [u8; 16]

Unique identifier

issued: u64

Unix timestamp in seconds when issued

renewable: bool

Can the lease be renewed or not

tags: Vec<String>

Any tags that the issuer applied to this lease

value: T

The value thats leased

Trait Implementations

impl<T: Debug> Debug for Lease<T> where
    T: DeserializeOwned + Serialize
[src]

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

impl<T> Serialize for Lease<T> where
    T: DeserializeOwned + Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Lease<T> where
    T: RefUnwindSafe

impl<T> Send for Lease<T> where
    T: Send

impl<T> Sync for Lease<T> where
    T: Sync

impl<T> Unpin for Lease<T> where
    T: Unpin

impl<T> UnwindSafe for Lease<T> where
    T: UnwindSafe

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> Message for T where
    T: Serialize + DeserializeOwned + Send + 'static, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,