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