pub struct RouterDecisionLog {
pub signature: PageSignature,
pub decision: RouterDecision,
}Expand description
Wrapper struct that records the router decision
alongside the original PageSignature
for audit / replay.
Not currently part of the acquisition result schema, but the type is exposed so downstream tooling that wants to log the full decision-derivation can build one.
Fields§
§signature: PageSignatureThe original signature.
decision: RouterDecisionThe decision.
Implementations§
Source§impl RouterDecisionLog
impl RouterDecisionLog
Sourcepub const fn new(signature: PageSignature, decision: RouterDecision) -> Self
pub const fn new(signature: PageSignature, decision: RouterDecision) -> Self
Build a log record from a signature + decision pair.
Trait Implementations§
Source§impl Clone for RouterDecisionLog
impl Clone for RouterDecisionLog
Source§fn clone(&self) -> RouterDecisionLog
fn clone(&self) -> RouterDecisionLog
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 RouterDecisionLog
impl Debug for RouterDecisionLog
Source§impl<'de> Deserialize<'de> for RouterDecisionLog
impl<'de> Deserialize<'de> for RouterDecisionLog
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 RouterDecisionLog
impl PartialEq for RouterDecisionLog
Source§impl Serialize for RouterDecisionLog
impl Serialize for RouterDecisionLog
impl Eq for RouterDecisionLog
impl StructuralPartialEq for RouterDecisionLog
Auto Trait Implementations§
impl Freeze for RouterDecisionLog
impl RefUnwindSafe for RouterDecisionLog
impl Send for RouterDecisionLog
impl Sync for RouterDecisionLog
impl Unpin for RouterDecisionLog
impl UnsafeUnpin for RouterDecisionLog
impl UnwindSafe for RouterDecisionLog
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.