[][src]Struct k8s_openapi::api::coordination::v1::LeaseSpec

pub struct LeaseSpec {
    pub acquire_time: Option<MicroTime>,
    pub holder_identity: Option<String>,
    pub lease_duration_seconds: Option<i32>,
    pub lease_transitions: Option<i32>,
    pub renew_time: Option<MicroTime>,
}

LeaseSpec is a specification of a Lease.

Fields

acquire_time: Option<MicroTime>

acquireTime is a time when the current lease was acquired.

holder_identity: Option<String>

holderIdentity contains the identity of the holder of a current lease.

lease_duration_seconds: Option<i32>

leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.

lease_transitions: Option<i32>

leaseTransitions is the number of transitions of a lease between holders.

renew_time: Option<MicroTime>

renewTime is a time when the current holder of a lease has last updated the lease.

Trait Implementations

impl Clone for LeaseSpec[src]

impl Debug for LeaseSpec[src]

impl Default for LeaseSpec[src]

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

impl PartialEq<LeaseSpec> for LeaseSpec[src]

impl Serialize for LeaseSpec[src]

impl StructuralPartialEq for LeaseSpec[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, 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.