pub struct SessionSnapshot {
pub id: String,
pub activity_id: String,
pub started_at: i64,
pub ended_at: i64,
pub primary_apps: Vec<String>,
pub summary: String,
pub tags: Vec<String>,
pub capture_count: u64,
}Expand description
A session snapshot — a compact summary of a contiguous working session.
Wire format for GET /api/snapshots. Mirrors SessionSnapshotRow in
wenlan-core/db.rs but lives here so wenlan-types can stay the single
source of truth for HTTP boundary shapes (and because capture_count is
serialized as a JSON number rather than a Rust usize).
Fields§
§id: String§activity_id: String§started_at: i64§ended_at: i64§primary_apps: Vec<String>§summary: String§capture_count: u64Trait Implementations§
Source§impl Clone for SessionSnapshot
impl Clone for SessionSnapshot
Source§fn clone(&self) -> SessionSnapshot
fn clone(&self) -> SessionSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionSnapshot
impl Debug for SessionSnapshot
Source§impl<'de> Deserialize<'de> for SessionSnapshot
impl<'de> Deserialize<'de> for SessionSnapshot
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
Auto Trait Implementations§
impl Freeze for SessionSnapshot
impl RefUnwindSafe for SessionSnapshot
impl Send for SessionSnapshot
impl Sync for SessionSnapshot
impl Unpin for SessionSnapshot
impl UnsafeUnpin for SessionSnapshot
impl UnwindSafe for SessionSnapshot
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