docs: fix misleading and add comment for SessionData

This commit is contained in:
mow 2026-03-08 09:20:34 +01:00
parent 31e7e9c3ef
commit 59ab96be98

View file

@ -16,7 +16,6 @@
// A curated, ordered list of documents (or individual pages within them).
// Items are persisted exactly as stored. Missing files are detected and
// removed with a warning when the session file is loaded.
// `path` is None for this kind.
//
// The on-disk representation of a session list is managed by `store.rs`.
@ -53,7 +52,9 @@ impl SessionItem {
pub struct SessionData {
pub name: String,
pub kind: CollectionKind,
/// Source directory for `DirectoryBrowser` sessions; `None` for `DocumentCollection`.
/// For DirectoryBrowser: the source directory to scan.
/// For DocumentCollection: None (items are managed individually).
/// The .ron session file path is tracked separately.
#[serde(default)]
pub path: Option<PathBuf>,
pub items: Vec<SessionItem>,