pub struct AclRoleListStubBuilder { /* private fields */ }
Expand description
Builder for AclRoleListStub
.
Implementations§
Source§impl AclRoleListStubBuilder
impl AclRoleListStubBuilder
Sourcepub fn id(&mut self, value: String) -> &mut Self
pub fn id(&mut self, value: String) -> &mut Self
ID is an internally generated UUID for this role and is controlled by Nomad.
Sourcepub fn name(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
Name is unique across the entire set of federated clusters and is supplied by the operator on role creation. The name can be modified by updating the role and including the Nomad generated ID. This update will not affect tokens created and linked to this role. This is a required field.
Sourcepub fn description(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
Description is a human-readable, operator set description that can provide additional context about the role. This is an operational field.
Sourcepub fn policies(&mut self, value: Vec<AclRolePolicyLink>) -> &mut Self
pub fn policies(&mut self, value: Vec<AclRolePolicyLink>) -> &mut Self
Policies is an array of ACL policy links. Although currently policies can only be linked using their name, in the future we will want to add IDs also and thus allow operators to specify either a name, an ID, or both.
pub fn create_index(&mut self, value: u64) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
Sourcepub fn build(&self) -> Result<AclRoleListStub, AclRoleListStubBuilderError>
pub fn build(&self) -> Result<AclRoleListStub, AclRoleListStubBuilderError>
Trait Implementations§
Source§impl Clone for AclRoleListStubBuilder
impl Clone for AclRoleListStubBuilder
Source§fn clone(&self) -> AclRoleListStubBuilder
fn clone(&self) -> AclRoleListStubBuilder
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 AclRoleListStubBuilder
impl RefUnwindSafe for AclRoleListStubBuilder
impl Send for AclRoleListStubBuilder
impl Sync for AclRoleListStubBuilder
impl Unpin for AclRoleListStubBuilder
impl UnwindSafe for AclRoleListStubBuilder
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