pub struct Candidate {
pub doc: CandidateDoc,
pub origin: RuleOrigin,
}Expand description
A rule document together with where it came from.
Fields§
§doc: CandidateDocThe parsed document.
origin: RuleOriginWhere the document was read from.
Implementations§
Source§impl Candidate
impl Candidate
Sourcepub fn kind(&self) -> DocumentKind
pub fn kind(&self) -> DocumentKind
The document kind.
Sourcepub fn logsource(&self) -> Option<&LogSource>
pub fn logsource(&self) -> Option<&LogSource>
The document logsource; correlations have none of their own.
The document tags.
Sourcepub fn referenced_rules(&self) -> &[String]
pub fn referenced_rules(&self) -> &[String]
Rules a correlation references, by id or name.
Sourcepub fn filter_targets(&self) -> Option<&[String]>
pub fn filter_targets(&self) -> Option<&[String]>
Rules a filter targets, if it is not Any.
Trait Implementations§
impl StructuralPartialEq for Candidate
Auto Trait Implementations§
impl Forget for Candidate
impl Freeze for Candidate
impl Move for Candidate
impl RefUnwindSafe for Candidate
impl Send for Candidate
impl Sync for Candidate
impl Unpin for Candidate
impl UnsafeUnpin for Candidate
impl UnwindSafe for Candidate
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