pub struct AclBindingRuleBuilder { /* private fields */ }
Expand description
Builder for AclBindingRule
.
Implementations§
Source§impl AclBindingRuleBuilder
impl AclBindingRuleBuilder
Sourcepub fn bind_name(&mut self, value: String) -> &mut Self
pub fn bind_name(&mut self, value: String) -> &mut Self
BindName is the target of the binding. Can be lightly templated using HIL ${foo} syntax from available field names. How it is used depends upon the BindType.
pub fn create_time(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn modify_time(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
pub fn modify_index(&mut self, value: u64) -> &mut Self
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 binding rule. This is an operational field.
Sourcepub fn auth_method(&mut self, value: String) -> &mut Self
pub fn auth_method(&mut self, value: String) -> &mut Self
AuthMethod is the name of the auth method for which this rule applies to. This is required and the method must exist within state before the cluster administrator can create the rule.
Sourcepub fn selector(&mut self, value: String) -> &mut Self
pub fn selector(&mut self, value: String) -> &mut Self
Selector is an expression that matches against verified identity attributes returned from the auth method during login. This is optional and when not set, provides a catch-all rule.
Sourcepub fn bind_type(&mut self, value: String) -> &mut Self
pub fn bind_type(&mut self, value: String) -> &mut Self
BindType adjusts how this binding rule is applied at login time. The valid values are ACLBindingRuleBindTypeRole, ACLBindingRuleBindTypePolicy, and ACLBindingRuleBindTypeManagement.
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 rule and is controlled by Nomad.
Sourcepub fn build(&self) -> Result<AclBindingRule, AclBindingRuleBuilderError>
pub fn build(&self) -> Result<AclBindingRule, AclBindingRuleBuilderError>
Trait Implementations§
Source§impl Clone for AclBindingRuleBuilder
impl Clone for AclBindingRuleBuilder
Source§fn clone(&self) -> AclBindingRuleBuilder
fn clone(&self) -> AclBindingRuleBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more