pub struct ReplayDefenseReport {
pub decision: ReplayDefenseDecision,
pub state_evaluated: bool,
pub forced_refresh: bool,
}Expand description
Compact replay-defense report attached to acquisition results
and emitted via tracing.
Fields§
§decision: ReplayDefenseDecisionResolved decision for this run.
state_evaluated: boolWhether the state was considered (vs. no state supplied).
forced_refresh: boolWhether the runner was instructed to force a refresh.
Implementations§
Source§impl ReplayDefenseReport
impl ReplayDefenseReport
Sourcepub fn skipped() -> Self
pub fn skipped() -> Self
A no-state report (Valid, no evaluation performed, no forced refresh).
Sourcepub fn evaluate(
policy: &ReplayDefensePolicy,
state: &ReplayDefenseState,
input: &ReplayDefenseCheckInput,
) -> Self
pub fn evaluate( policy: &ReplayDefensePolicy, state: &ReplayDefenseState, input: &ReplayDefenseCheckInput, ) -> Self
Build a report from a policy / state / input triple.
Trait Implementations§
Source§impl Clone for ReplayDefenseReport
impl Clone for ReplayDefenseReport
Source§fn clone(&self) -> ReplayDefenseReport
fn clone(&self) -> ReplayDefenseReport
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 ReplayDefenseReport
impl Debug for ReplayDefenseReport
Source§impl<'de> Deserialize<'de> for ReplayDefenseReport
impl<'de> Deserialize<'de> for ReplayDefenseReport
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 ReplayDefenseReport
impl PartialEq for ReplayDefenseReport
Source§impl Serialize for ReplayDefenseReport
impl Serialize for ReplayDefenseReport
impl Eq for ReplayDefenseReport
impl StructuralPartialEq for ReplayDefenseReport
Auto Trait Implementations§
impl Freeze for ReplayDefenseReport
impl RefUnwindSafe for ReplayDefenseReport
impl Send for ReplayDefenseReport
impl Sync for ReplayDefenseReport
impl Unpin for ReplayDefenseReport
impl UnsafeUnpin for ReplayDefenseReport
impl UnwindSafe for ReplayDefenseReport
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.