pub struct StandardWebReasoning { /* private fields */ }Expand description
Validated web-domain ontology and deterministic fingerprint rule pack.
The profile recognizes disclosed nginx, Apache HTTP Server, PHP, Laravel, Livewire, Sanctum, HTTP Basic, and HTTP Bearer signals. Conclusions remain hypotheses: only verifier stages may mark them confirmed or rejected.
§Examples
use termivar_scanner::{KnowledgeBase, RuleEngine, StandardWebReasoning};
let knowledge = KnowledgeBase::new();
let mut rules = RuleEngine::new();
let profile = StandardWebReasoning::new()?;
let installed = profile.install(&knowledge, &mut rules)?;
assert_eq!(installed.rules_inserted(), profile.rules().len());Implementations§
Source§impl StandardWebReasoning
impl StandardWebReasoning
Sourcepub fn new() -> Result<Self, StandardWebReasoningError>
pub fn new() -> Result<Self, StandardWebReasoningError>
Builds and validates the standard vocabulary and rule definitions.
Sourcepub fn install(
&self,
knowledge: &KnowledgeBase,
engine: &mut RuleEngine,
) -> Result<StandardWebInstallReport, StandardWebReasoningError>
pub fn install( &self, knowledge: &KnowledgeBase, engine: &mut RuleEngine, ) -> Result<StandardWebInstallReport, StandardWebReasoningError>
Installs the complete profile idempotently into knowledge and rules.
Definitions are first applied to owned clones, so a known identity or semantic conflict is detected before shared state is changed.
Sourcepub fn concepts(&self) -> &[OntologyConcept]
pub fn concepts(&self) -> &[OntologyConcept]
Returns concepts in stable declaration order.
Sourcepub fn axioms(&self) -> &[OntologyAxiom]
pub fn axioms(&self) -> &[OntologyAxiom]
Returns semantic axioms in stable declaration order.
Sourcepub fn rules(&self) -> &[ReasoningRule]
pub fn rules(&self) -> &[ReasoningRule]
Returns reasoning rules in stable declaration order.
Trait Implementations§
Source§impl Clone for StandardWebReasoning
impl Clone for StandardWebReasoning
Source§fn clone(&self) -> StandardWebReasoning
fn clone(&self) -> StandardWebReasoning
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StandardWebReasoning
impl RefUnwindSafe for StandardWebReasoning
impl Send for StandardWebReasoning
impl Sync for StandardWebReasoning
impl Unpin for StandardWebReasoning
impl UnsafeUnpin for StandardWebReasoning
impl UnwindSafe for StandardWebReasoning
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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