pub struct UserPattern { /* private fields */ }Expand description
User pattern after deserialisation + regex compilation. Holds owned
strings (unlike crate::builtin::Builtin, which is 'static).
Implementations§
Trait Implementations§
Source§impl Debug for UserPattern
impl Debug for UserPattern
Source§impl SecretPattern for UserPattern
impl SecretPattern for UserPattern
Source§fn id(&self) -> &str
fn id(&self) -> &str
Stable identifier (lowercase, kebab-case). Used as a foreign
key from the global index entry’s
pattern_id (ADR-020 §3)
and as a join key with other tools that consume the
catalogue.Source§fn display_name(&self) -> &str
fn display_name(&self) -> &str
Human-readable name shown in
secrets describe and in
scan-tool reports.Source§fn format_regex(&self) -> &Regex
fn format_regex(&self) -> &Regex
Regular expression matching valid values of this kind. Read more
Source§fn metadata(&self) -> Option<&PatternMetadata>
fn metadata(&self) -> Option<&PatternMetadata>
Optional descriptive metadata (provider, retrieval URL,
expiry, scopes). Read more
Auto Trait Implementations§
impl Freeze for UserPattern
impl RefUnwindSafe for UserPattern
impl Send for UserPattern
impl Sync for UserPattern
impl Unpin for UserPattern
impl UnsafeUnpin for UserPattern
impl UnwindSafe for UserPattern
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