pub struct Variable {
pub modify_index: u64,
pub create_time: i64,
pub modify_time: i64,
pub items: HashMap<String, String>,
pub lock: Option<VariableLock>,
pub namespace: String,
pub path: String,
pub create_index: u64,
}
Expand description
Variable specifies the metadata and contents to be stored in the encrypted Nomad backend.
This struct was generated based on the Go types of the official Nomad API.
Fields§
§modify_index: u64
ModifyTime is the unix nano of the last modified time
create_time: i64
CreateTime is the unix nano of the creation time
modify_time: i64
ModifyTime is the unix nano of the last modified time
items: HashMap<String, String>
Items contains the k/v variable component
lock: Option<VariableLock>
Lock holds the information about the variable lock if its being used.
namespace: String
Namespace is the Nomad namespace associated with the variable
path: String
Path is the path to the variable
create_index: u64
CreateIndex tracks the index of creation time
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Variable
impl<'de> Deserialize<'de> for Variable
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
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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