pub struct RuleBuilder { /* private fields */ }
Expand description
Builder for Rule
.
Implementations§
Source§impl RuleBuilder
impl RuleBuilder
pub fn _id(&mut self, value: Option<String>) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn description(&mut self, value: Option<String>) -> &mut Self
pub fn enabled(&mut self, value: Option<bool>) -> &mut Self
pub fn priority(&mut self, value: u32) -> &mut Self
pub fn conditions(&mut self, value: Vec<Condition>) -> &mut Self
pub fn actions(&mut self, value: Vec<ConditionAction>) -> &mut Self
Trait Implementations§
Source§impl Clone for RuleBuilder
impl Clone for RuleBuilder
Source§fn clone(&self) -> RuleBuilder
fn clone(&self) -> RuleBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RuleBuilder
impl RefUnwindSafe for RuleBuilder
impl Send for RuleBuilder
impl Sync for RuleBuilder
impl Unpin for RuleBuilder
impl UnwindSafe for RuleBuilder
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