pub struct ValueDraftSpec {
pub title: String,
pub description: Option<String>,
pub references: Vec<String>,
pub tags: Vec<String>,
pub rule_id: Option<String>,
pub date: Option<String>,
pub logsource_category: Option<String>,
pub logsource_product: Option<String>,
pub logsource_service: Option<String>,
pub level: Option<String>,
pub selections: Vec<ValueSelection>,
}Expand description
Input for draft_rule_from_values.
Every string is the caller’s. This crate does not parse STIX.
Fields§
§title: StringRule title. Empty titles are refused.
description: Option<String>Rule description. None or blank text emits the shared TODO placeholder.
references: Vec<String>External references. Empty lists are omitted.
Sigma tags. Empty lists are omitted.
rule_id: Option<String>Rule id. The caller owns how it is chosen.
date: Option<String>YYYY-MM-DD. None uses today’s UTC date.
logsource_category: Option<String>Logsource category.
logsource_product: Option<String>Logsource product.
logsource_service: Option<String>Logsource service.
level: Option<String>Sigma level. None emits medium.
selections: Vec<ValueSelection>Selections combined with 1 of selection_*.
Trait Implementations§
Source§impl Clone for ValueDraftSpec
impl Clone for ValueDraftSpec
Source§impl Debug for ValueDraftSpec
impl Debug for ValueDraftSpec
impl Eq for ValueDraftSpec
Source§impl PartialEq for ValueDraftSpec
impl PartialEq for ValueDraftSpec
impl StructuralPartialEq for ValueDraftSpec
Auto Trait Implementations§
impl Forget for ValueDraftSpec
impl Freeze for ValueDraftSpec
impl Move for ValueDraftSpec
impl RefUnwindSafe for ValueDraftSpec
impl Send for ValueDraftSpec
impl Sync for ValueDraftSpec
impl Unpin for ValueDraftSpec
impl UnsafeUnpin for ValueDraftSpec
impl UnwindSafe for ValueDraftSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.