pub(crate) struct RulesetBody<'a> {
name: &'a str,
target: &'a Target,
enforcement: Enforcement,
bypass_actors: Vec<BypassActorBody>,
conditions: Conditions<'a>,
rules: Vec<RuleEntry<'a>>,
}Expand description
The body that creates or replaces a ruleset.
Fields§
§name: &'a str§target: &'a Target§enforcement: Enforcement§bypass_actors: Vec<BypassActorBody>§conditions: Conditions<'a>§rules: Vec<RuleEntry<'a>>Implementations§
Source§impl<'a> RulesetBody<'a>
impl<'a> RulesetBody<'a>
pub(crate) fn new( name: &'a str, ruleset: &'a Definition, unmanaged_rules: &'a [Value], ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RulesetBody<'a>
impl<'a> RefUnwindSafe for RulesetBody<'a>
impl<'a> Send for RulesetBody<'a>
impl<'a> Sync for RulesetBody<'a>
impl<'a> Unpin for RulesetBody<'a>
impl<'a> UnsafeUnpin for RulesetBody<'a>
impl<'a> UnwindSafe for RulesetBody<'a>
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