pub enum QuirkSeverity {
Info,
Warning,
Error,
}Expand description
Severity classification for a QuirkMatch.
The ingest flow in validate_proxy_url treats the
severity as the action gate:
QuirkSeverity::Error— hard-error quirks reject the URL outright.QuirkSeverity::Warning— warning quirks are logged but the URL is accepted.QuirkSeverity::Info— informational quirks are recorded for observability and the URL is accepted.
§Example
use stygian_proxy::vendor_quirks::QuirkSeverity;
assert_eq!(QuirkSeverity::Error, QuirkSeverity::Error);
assert_ne!(QuirkSeverity::Warning, QuirkSeverity::Info);Variants§
Info
Informational — the URL is accepted; the quirk is recorded.
Warning
Warning — the URL is accepted; the quirk is logged.
Error
Error — the URL is rejected by the ingest validator.
Trait Implementations§
Source§impl Clone for QuirkSeverity
impl Clone for QuirkSeverity
Source§fn clone(&self) -> QuirkSeverity
fn clone(&self) -> QuirkSeverity
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 moreimpl Copy for QuirkSeverity
Source§impl Debug for QuirkSeverity
impl Debug for QuirkSeverity
Source§impl<'de> Deserialize<'de> for QuirkSeverity
impl<'de> Deserialize<'de> for QuirkSeverity
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QuirkSeverity
Source§impl Hash for QuirkSeverity
impl Hash for QuirkSeverity
Source§impl PartialEq for QuirkSeverity
impl PartialEq for QuirkSeverity
Source§impl Serialize for QuirkSeverity
impl Serialize for QuirkSeverity
impl StructuralPartialEq for QuirkSeverity
Auto Trait Implementations§
impl Freeze for QuirkSeverity
impl RefUnwindSafe for QuirkSeverity
impl Send for QuirkSeverity
impl Sync for QuirkSeverity
impl Unpin for QuirkSeverity
impl UnsafeUnpin for QuirkSeverity
impl UnwindSafe for QuirkSeverity
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
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§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
Compare self to
key and return true if they are equal.