pub struct VariableMetadataBuilder { /* private fields */ }
Expand description
Builder for VariableMetadata
.
Implementations§
Source§impl VariableMetadataBuilder
impl VariableMetadataBuilder
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 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.
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 build(&self) -> Result<VariableMetadata, VariableMetadataBuilderError>
pub fn build(&self) -> Result<VariableMetadata, VariableMetadataBuilderError>
Trait Implementations§
Source§impl Clone for VariableMetadataBuilder
impl Clone for VariableMetadataBuilder
Source§fn clone(&self) -> VariableMetadataBuilder
fn clone(&self) -> VariableMetadataBuilder
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 moreAuto Trait Implementations§
impl Freeze for VariableMetadataBuilder
impl RefUnwindSafe for VariableMetadataBuilder
impl Send for VariableMetadataBuilder
impl Sync for VariableMetadataBuilder
impl Unpin for VariableMetadataBuilder
impl UnwindSafe for VariableMetadataBuilder
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