pub struct AclRoleBuilder { /* private fields */ }
Expand description
Builder for AclRole
.
Implementations§
Source§impl AclRoleBuilder
impl AclRoleBuilder
pub fn create_index(&mut self, value: u64) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
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. It can be used after role creation to update the existing role.
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 optional 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. At least one entry is required.
Trait Implementations§
Source§impl Clone for AclRoleBuilder
impl Clone for AclRoleBuilder
Source§fn clone(&self) -> AclRoleBuilder
fn clone(&self) -> AclRoleBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more