pub struct StandardWebVerificationProfile { /* private fields */ }Expand description
Action- and case-scoped verification rules for standard discovery probes.
The profile is intentionally conservative: explicit framework/auth markers
can succeed, blocking status codes can report Blocked, and a Laravel
Allow header remains NeedsReview. Absence alone never creates a false
positive outcome.
§Examples
use termivar_scanner::{
StandardWebVerificationProfile, VerificationPipeline,
STANDARD_WEB_VERIFICATION_RULE_COUNT,
};
let profile = StandardWebVerificationProfile::new()?;
let mut pipeline = VerificationPipeline::default();
let report = profile.install(&mut pipeline)?;
assert_eq!(report.total_rules_inserted(), STANDARD_WEB_VERIFICATION_RULE_COUNT);Implementations§
Source§impl StandardWebVerificationProfile
impl StandardWebVerificationProfile
Sourcepub fn new() -> Result<Self, StandardWebVerificationError>
pub fn new() -> Result<Self, StandardWebVerificationError>
Constructs the complete passive/active rule set.
Sourcepub fn install(
&self,
pipeline: &mut VerificationPipeline,
) -> Result<StandardWebVerificationInstallReport, StandardWebVerificationError>
pub fn install( &self, pipeline: &mut VerificationPipeline, ) -> Result<StandardWebVerificationInstallReport, StandardWebVerificationError>
Installs all rules atomically and idempotently.
Sourcepub fn rules(&self) -> &[VerificationRule]
pub fn rules(&self) -> &[VerificationRule]
Returns rules in stable action, stage, and purpose order.
Trait Implementations§
Source§impl Clone for StandardWebVerificationProfile
impl Clone for StandardWebVerificationProfile
Source§fn clone(&self) -> StandardWebVerificationProfile
fn clone(&self) -> StandardWebVerificationProfile
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 StandardWebVerificationProfile
impl RefUnwindSafe for StandardWebVerificationProfile
impl Send for StandardWebVerificationProfile
impl Sync for StandardWebVerificationProfile
impl Unpin for StandardWebVerificationProfile
impl UnsafeUnpin for StandardWebVerificationProfile
impl UnwindSafe for StandardWebVerificationProfile
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