Public declaration syntax from harness-sdk/src/session/metadata.rs Original source SHA-256: 29eca97dd61028c12a7073515e4137e71c6e780f07858c00c6aee6ab3e2d740d Function bodies and constant values are omitted. This is not the complete implementation. Source line 16 #[derive(Debug, Clone, Serialize, Deserialize)] pub struct SessionMetadata { /// Session id (matches the file stem on disk). pub session_id: Uuid, /// Application name (which app wrote this session). pub app_name: String, /// Workspace root the session was started in (display only). #[serde(default)] pub workspace_root: String, /// First user message (truncated) — shown as the picker preview. #[serde(default)] pub preview: String, /// When the session started. pub started_at: DateTime, /// When the session was last appended to. pub last_updated_at: DateTime, /// Number of records persisted so far. #[serde(default)] pub record_count: u64 } Source line 40 #[must_use] pub fn truncate_preview(s: &str, max_chars: usize) -> String;