MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / default

Method default

crates/opencode-types/src/session.rs:58–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57impl Default for SessionTime {
58 fn default() -> Self {
59 let now = chrono::Utc::now().timestamp_millis();
60 Self {
61 created: now,
62 updated: now,
63 compacting: None,
64 archived: None,
65 }
66 }
67}
68
69#[derive(Debug, Clone, Serialize, Deserialize, Default)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected