pub struct DetectionConfigError { /* private fields */ }Expand description
Why a detector selection was rejected: a fixed class and, for a problem in one id, that id’s zero-based position in its array.
The class is one of the config-diagnostics/v1 error codes
(UNKNOWN_FIELD, WRONG_TYPE, TOO_MANY_DETECTOR_IDS,
INVALID_IDENTIFIER, DUPLICATE_DETECTOR_ID, DETECTOR_NOT_SELECTABLE,
DETECTOR_NOT_INCLUDED, UNKNOWN_DETECTOR_ID, DETECTION_SELECTOR_CONFLICT
or EMPTY_DETECTION_SET). Nothing of the rejected input is carried, so a
pasted secret in place of an id is never echoed.
Implementations§
Source§impl DetectionConfigError
impl DetectionConfigError
Sourcepub const fn code(self) -> SecretScanErrorCode
pub const fn code(self) -> SecretScanErrorCode
INVALID_DETECTION_CONFIG, or EMPTY_DETECTION_SET when the selection
leaves nothing to detect.
Sourcepub const fn class_name(self) -> &'static str
pub const fn class_name(self) -> &'static str
The fixed diagnostic class, for example DETECTOR_NOT_INCLUDED.
Trait Implementations§
Source§impl Clone for DetectionConfigError
impl Clone for DetectionConfigError
impl Copy for DetectionConfigError
Source§impl Debug for DetectionConfigError
impl Debug for DetectionConfigError
Source§impl Display for DetectionConfigError
impl Display for DetectionConfigError
impl Eq for DetectionConfigError
Source§impl Error for DetectionConfigError
impl Error for DetectionConfigError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DetectionConfigError> for SecretScanError
impl From<DetectionConfigError> for SecretScanError
Source§fn from(error: DetectionConfigError) -> Self
fn from(error: DetectionConfigError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DetectionConfigError
impl PartialEq for DetectionConfigError
impl StructuralPartialEq for DetectionConfigError
Auto Trait Implementations§
impl Freeze for DetectionConfigError
impl RefUnwindSafe for DetectionConfigError
impl Send for DetectionConfigError
impl Sync for DetectionConfigError
impl Unpin for DetectionConfigError
impl UnsafeUnpin for DetectionConfigError
impl UnwindSafe for DetectionConfigError
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