pub struct VaultAccessorBuilder { /* private fields */ }
Expand description
Builder for VaultAccessor
.
Implementations§
Source§impl VaultAccessorBuilder
impl VaultAccessorBuilder
Sourcepub fn node_id(&mut self, value: String) -> &mut Self
pub fn node_id(&mut self, value: String) -> &mut Self
NodeID is the ID of the node running the allocation that requested this token.
Sourcepub fn accessor(&mut self, value: String) -> &mut Self
pub fn accessor(&mut self, value: String) -> &mut Self
Accessor is the Vault ACL token accessor ID.
Sourcepub fn creation_ttl(&mut self, value: i64) -> &mut Self
pub fn creation_ttl(&mut self, value: i64) -> &mut Self
CreationTTL is the TTL set when the token was created.
Sourcepub fn create_index(&mut self, value: u64) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
CreateIndex is the Raft index when the token was created.
Sourcepub fn alloc_id(&mut self, value: String) -> &mut Self
pub fn alloc_id(&mut self, value: String) -> &mut Self
AllocID is the ID of the allocation that requested this token.
Sourcepub fn task(&mut self, value: String) -> &mut Self
pub fn task(&mut self, value: String) -> &mut Self
Task is the name of the task that requested this token.
Sourcepub fn build(&self) -> Result<VaultAccessor, VaultAccessorBuilderError>
pub fn build(&self) -> Result<VaultAccessor, VaultAccessorBuilderError>
Trait Implementations§
Source§impl Clone for VaultAccessorBuilder
impl Clone for VaultAccessorBuilder
Source§fn clone(&self) -> VaultAccessorBuilder
fn clone(&self) -> VaultAccessorBuilder
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 VaultAccessorBuilder
impl RefUnwindSafe for VaultAccessorBuilder
impl Send for VaultAccessorBuilder
impl Sync for VaultAccessorBuilder
impl Unpin for VaultAccessorBuilder
impl UnwindSafe for VaultAccessorBuilder
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