pub struct VariableMetadata {
pub namespace: String,
pub path: String,
pub create_index: u64,
pub modify_index: u64,
pub create_time: i64,
pub modify_time: i64,
pub lock: Option<VariableLock>,
}
Expand description
VariableMetadata specifies the metadata for a variable and is used as the list object
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§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
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
lock: Option<VariableLock>
Lock holds the information about the variable lock if its being used.
Implementations§
Source§impl VariableMetadata
impl VariableMetadata
pub fn builder() -> VariableMetadataBuilder
Trait Implementations§
Source§impl Clone for VariableMetadata
impl Clone for VariableMetadata
Source§fn clone(&self) -> VariableMetadata
fn clone(&self) -> VariableMetadata
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 VariableMetadata
impl Debug for VariableMetadata
Source§impl Default for VariableMetadata
impl Default for VariableMetadata
Source§fn default() -> VariableMetadata
fn default() -> VariableMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VariableMetadata
impl<'de> Deserialize<'de> for VariableMetadata
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 VariableMetadata
impl PartialEq for VariableMetadata
Source§impl Serialize for VariableMetadata
impl Serialize for VariableMetadata
impl StructuralPartialEq for VariableMetadata
Auto Trait Implementations§
impl Freeze for VariableMetadata
impl RefUnwindSafe for VariableMetadata
impl Send for VariableMetadata
impl Sync for VariableMetadata
impl Unpin for VariableMetadata
impl UnwindSafe for VariableMetadata
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