pub struct TraceEvent {
pub from: Option<PageRef>,
pub to: PageRef,
pub transition: TraceTransition,
pub at_ms: u64,
pub dwell_ms: Option<u64>,
pub candidates: Vec<PageRef>,
}Expand description
One traversal: where the user went, from where, how, and when.
Fields§
§from: Option<PageRef>The page navigated from; None for an origin event (first visit of a
session, a typed URL into a fresh surface, an import).
to: PageRef§transition: TraceTransition§at_ms: u64§dwell_ms: Option<u64>Dwell on to, when the recorder knows it (live capture may; imports
rarely do).
candidates: Vec<PageRef>The other pages this navigation was chosen against — the relational
candidate set (the source page’s outbound links, or a materialized
neighborhood). to is the chosen one; the rest are the in-context
“seen but not followed” negatives (the listwise relevance signal). Empty
when no relational context was available. (Capture plan C2.)
Trait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§impl Debug for TraceEvent
impl Debug for TraceEvent
Source§impl<'de> Deserialize<'de> for TraceEvent
impl<'de> Deserialize<'de> for TraceEvent
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 TraceEvent
Source§impl PartialEq for TraceEvent
impl PartialEq for TraceEvent
Source§impl Serialize for TraceEvent
impl Serialize for TraceEvent
impl StructuralPartialEq for TraceEvent
Auto Trait Implementations§
impl Freeze for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEvent
impl UnwindSafe for TraceEvent
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