pub struct BrowsingTrace {
pub owner: String,
pub events: Vec<TraceEvent>,
pub started_at_ms: u64,
pub ended_at_ms: u64,
}Expand description
A chronological segment of one owner’s traversals — the typed payload
browsing memory accumulates. owner is an opaque persona tag carried
from day one (cheap to carry, expensive to retrofit); "" means
unattributed.
Fields§
§owner: String§events: Vec<TraceEvent>Events in chronological order.
started_at_ms: u64§ended_at_ms: u64Implementations§
Source§impl BrowsingTrace
impl BrowsingTrace
Sourcepub fn from_events(owner: impl Into<String>, events: Vec<TraceEvent>) -> Self
pub fn from_events(owner: impl Into<String>, events: Vec<TraceEvent>) -> Self
Build a trace from chronologically ordered events. Bounds derive from the first and last event; an empty event list is allowed but inert.
Trait Implementations§
Source§impl Clone for BrowsingTrace
impl Clone for BrowsingTrace
Source§impl Debug for BrowsingTrace
impl Debug for BrowsingTrace
Source§impl<'de> Deserialize<'de> for BrowsingTrace
impl<'de> Deserialize<'de> for BrowsingTrace
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 BrowsingTrace
Source§impl PartialEq for BrowsingTrace
impl PartialEq for BrowsingTrace
Source§impl Serialize for BrowsingTrace
impl Serialize for BrowsingTrace
impl StructuralPartialEq for BrowsingTrace
Source§impl TypedPayload for BrowsingTrace
impl TypedPayload for BrowsingTrace
Source§fn schema_ref() -> SchemaRef
fn schema_ref() -> SchemaRef
Content-addressed reference to the schema this type conforms to.
In practice this is typically a
const fn-computed SchemaRef or a
lazily-computed one keyed by the schema engram’s known content hash.Source§fn serialize_to_bytes(&self) -> Result<Vec<u8>>
fn serialize_to_bytes(&self) -> Result<Vec<u8>>
Serialize the value to bytes. Default implementation uses
serde_json; impls override to pick a per-schema serializer.Source§fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self>
fn deserialize_from_bytes(bytes: &[u8]) -> Result<Self>
Deserialize bytes into a value. Default uses
serde_json.Auto Trait Implementations§
impl Freeze for BrowsingTrace
impl RefUnwindSafe for BrowsingTrace
impl Send for BrowsingTrace
impl Sync for BrowsingTrace
impl Unpin for BrowsingTrace
impl UnsafeUnpin for BrowsingTrace
impl UnwindSafe for BrowsingTrace
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