pub struct VariableLock {
pub id: String,
pub ttl: String,
pub lock_delay: String,
}
Expand description
This struct was generated based on the Go types of the official Nomad API.
Fields§
§id: String
ID is generated by Nomad to provide a unique caller ID which can be used for renewals and unlocking.
ttl: String
TTL describes the time-to-live of the current lock holder. This is a string version of a time.Duration like “2m”.
lock_delay: String
LockDelay describes a grace period that exists after a lock is lost, before another client may acquire the lock. This helps protect against split-brains. This is a string version of a time.Duration like “2m”.
Trait Implementations§
Source§impl Clone for VariableLock
impl Clone for VariableLock
Source§fn clone(&self) -> VariableLock
fn clone(&self) -> VariableLock
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VariableLock
impl Debug for VariableLock
Source§impl Default for VariableLock
impl Default for VariableLock
Source§fn default() -> VariableLock
fn default() -> VariableLock
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariableLock
impl<'de> Deserialize<'de> for VariableLock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for VariableLock
impl PartialEq for VariableLock
Source§impl Serialize for VariableLock
impl Serialize for VariableLock
impl StructuralPartialEq for VariableLock
Auto Trait Implementations§
impl Freeze for VariableLock
impl RefUnwindSafe for VariableLock
impl Send for VariableLock
impl Sync for VariableLock
impl Unpin for VariableLock
impl UnwindSafe for VariableLock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more