pub enum ContentTypeDrift {
ClassChange {
from: MimeClass,
to: MimeClass,
},
ByteCollapse {
ratio: f64,
},
}Expand description
Detected drift between the most recent observation and the historical baseline.
Variants§
ClassChange
MimeClass flipped from one variant to another. A
Html → Markdown shift is the canonical publisher-cloaking
signature.
Fields
ByteCollapse
Response body shrank by more than the configured threshold (default 50 %). The Markdown-stub pattern shrinks bodies by 20–100×.
Trait Implementations§
Source§impl Clone for ContentTypeDrift
impl Clone for ContentTypeDrift
Source§fn clone(&self) -> ContentTypeDrift
fn clone(&self) -> ContentTypeDrift
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 moreSource§impl Debug for ContentTypeDrift
impl Debug for ContentTypeDrift
Source§impl<'de> Deserialize<'de> for ContentTypeDrift
impl<'de> Deserialize<'de> for ContentTypeDrift
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
Source§impl PartialEq for ContentTypeDrift
impl PartialEq for ContentTypeDrift
Source§fn eq(&self, other: &ContentTypeDrift) -> bool
fn eq(&self, other: &ContentTypeDrift) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContentTypeDrift
impl Serialize for ContentTypeDrift
impl StructuralPartialEq for ContentTypeDrift
Auto Trait Implementations§
impl Freeze for ContentTypeDrift
impl RefUnwindSafe for ContentTypeDrift
impl Send for ContentTypeDrift
impl Sync for ContentTypeDrift
impl Unpin for ContentTypeDrift
impl UnsafeUnpin for ContentTypeDrift
impl UnwindSafe for ContentTypeDrift
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