pub struct CanonicalHexKeyMaterialSpec {
pub lengths: Vec<usize>,
pub keywords: Vec<String>,
pub suffixes: Vec<String>,
pub excluded_keywords: Vec<String>,
}Expand description
One detector-local pure-hex key-material policy.
A candidate is eligible only when its captured assignment key matches one of
keywords, ends with one of suffixes, and is not in excluded_keywords
after normal assignment-key case/separator normalization. Its exact
character count must appear in lengths. The scanner still applies entropy,
placeholder, context, and reporting gates.
Fields§
§lengths: Vec<usize>Exact pure-hex character counts admitted by this policy.
keywords: Vec<String>Assignment keys owned by a phase-2 generic policy. Each must also appear
in the detector’s top-level keywords list. Regex policies leave this
empty because their matched pattern supplies the scope.
suffixes: Vec<String>Normalized phase-2 assignment-key suffixes that may own this policy. This
expresses vendor-prefixed names such as stripe_secret_key without a
scanner-global suffix heuristic.
excluded_keywords: Vec<String>Normalized phase-2 assignment keys excluded from suffix ownership, such
as the ambiguous license_key shape.
Trait Implementations§
Source§impl Clone for CanonicalHexKeyMaterialSpec
impl Clone for CanonicalHexKeyMaterialSpec
Source§fn clone(&self) -> CanonicalHexKeyMaterialSpec
fn clone(&self) -> CanonicalHexKeyMaterialSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CanonicalHexKeyMaterialSpec
impl Debug for CanonicalHexKeyMaterialSpec
Source§impl Default for CanonicalHexKeyMaterialSpec
impl Default for CanonicalHexKeyMaterialSpec
Source§fn default() -> CanonicalHexKeyMaterialSpec
fn default() -> CanonicalHexKeyMaterialSpec
Source§impl<'de> Deserialize<'de> for CanonicalHexKeyMaterialSpec
impl<'de> Deserialize<'de> for CanonicalHexKeyMaterialSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for CanonicalHexKeyMaterialSpec
impl StructuralPartialEq for CanonicalHexKeyMaterialSpec
Auto Trait Implementations§
impl Freeze for CanonicalHexKeyMaterialSpec
impl RefUnwindSafe for CanonicalHexKeyMaterialSpec
impl Send for CanonicalHexKeyMaterialSpec
impl Sync for CanonicalHexKeyMaterialSpec
impl Unpin for CanonicalHexKeyMaterialSpec
impl UnsafeUnpin for CanonicalHexKeyMaterialSpec
impl UnwindSafe for CanonicalHexKeyMaterialSpec
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more