pub struct SentinelPolicyBuilder { /* private fields */ }
Expand description
Builder for SentinelPolicy
.
Implementations§
Source§impl SentinelPolicyBuilder
impl SentinelPolicyBuilder
pub fn modify_index(&mut self, value: u64) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: String) -> &mut Self
pub fn scope(&mut self, value: String) -> &mut Self
pub fn enforcement_level(&mut self, value: String) -> &mut Self
pub fn policy(&mut self, value: String) -> &mut Self
pub fn create_index(&mut self, value: u64) -> &mut Self
Sourcepub fn build(&self) -> Result<SentinelPolicy, SentinelPolicyBuilderError>
pub fn build(&self) -> Result<SentinelPolicy, SentinelPolicyBuilderError>
Trait Implementations§
Source§impl Clone for SentinelPolicyBuilder
impl Clone for SentinelPolicyBuilder
Source§fn clone(&self) -> SentinelPolicyBuilder
fn clone(&self) -> SentinelPolicyBuilder
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 SentinelPolicyBuilder
impl RefUnwindSafe for SentinelPolicyBuilder
impl Send for SentinelPolicyBuilder
impl Sync for SentinelPolicyBuilder
impl Unpin for SentinelPolicyBuilder
impl UnwindSafe for SentinelPolicyBuilder
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