pub struct DriftDiagnostic {
pub context_a: ContextKind,
pub context_b: ContextKind,
pub field: String,
pub observed_a: String,
pub observed_b: String,
pub severity: DriftSeverity,
}Expand description
Single drift record describing one field that disagreed across two contexts.
Fields§
§context_a: ContextKindFirst context in the comparison.
context_b: ContextKindSecond context in the comparison.
field: StringField name (snake_case, e.g. "user_agent").
observed_a: StringObserved value in context_a (rendered via Display).
observed_b: StringObserved value in context_b (rendered via Display).
severity: DriftSeveritySeverity classification.
Implementations§
Source§impl DriftDiagnostic
impl DriftDiagnostic
Sourcepub fn reason_tag(&self) -> String
pub fn reason_tag(&self) -> String
Stable, machine-readable reason tag ("top:iframe:user_agent:hard").
Trait Implementations§
Source§impl Clone for DriftDiagnostic
impl Clone for DriftDiagnostic
Source§fn clone(&self) -> DriftDiagnostic
fn clone(&self) -> DriftDiagnostic
Returns a duplicate of the value. Read more
1.0.0 · 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 DriftDiagnostic
impl Debug for DriftDiagnostic
Source§impl<'de> Deserialize<'de> for DriftDiagnostic
impl<'de> Deserialize<'de> for DriftDiagnostic
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 DriftDiagnostic
impl PartialEq for DriftDiagnostic
Source§impl Serialize for DriftDiagnostic
impl Serialize for DriftDiagnostic
impl Eq for DriftDiagnostic
impl StructuralPartialEq for DriftDiagnostic
Auto Trait Implementations§
impl Freeze for DriftDiagnostic
impl RefUnwindSafe for DriftDiagnostic
impl Send for DriftDiagnostic
impl Sync for DriftDiagnostic
impl Unpin for DriftDiagnostic
impl UnsafeUnpin for DriftDiagnostic
impl UnwindSafe for DriftDiagnostic
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.