pub struct VariableBuilder { /* private fields */ }
Expand description
Builder for Variable
.
Implementations§
Source§impl VariableBuilder
impl VariableBuilder
Sourcepub fn namespace(&mut self, value: String) -> &mut Self
pub fn namespace(&mut self, value: String) -> &mut Self
Namespace is the Nomad namespace associated with the variable
Sourcepub fn create_index(&mut self, value: u64) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
CreateIndex tracks the index of creation time
Sourcepub fn modify_index(&mut self, value: u64) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
ModifyTime is the unix nano of the last modified time
Sourcepub fn create_time(&mut self, value: i64) -> &mut Self
pub fn create_time(&mut self, value: i64) -> &mut Self
CreateTime is the unix nano of the creation time
Sourcepub fn modify_time(&mut self, value: i64) -> &mut Self
pub fn modify_time(&mut self, value: i64) -> &mut Self
ModifyTime is the unix nano of the last modified time
Sourcepub fn items(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn items(&mut self, value: HashMap<String, String>) -> &mut Self
Items contains the k/v variable component
Sourcepub fn lock(&mut self, value: Option<VariableLock>) -> &mut Self
pub fn lock(&mut self, value: Option<VariableLock>) -> &mut Self
Lock holds the information about the variable lock if its being used.
Trait Implementations§
Source§impl Clone for VariableBuilder
impl Clone for VariableBuilder
Source§fn clone(&self) -> VariableBuilder
fn clone(&self) -> VariableBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for VariableBuilder
impl RefUnwindSafe for VariableBuilder
impl Send for VariableBuilder
impl Sync for VariableBuilder
impl Unpin for VariableBuilder
impl UnwindSafe for VariableBuilder
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