docs: fix misleading and add comment for SessionData
This commit is contained in:
parent
31e7e9c3ef
commit
59ab96be98
1 changed files with 3 additions and 2 deletions
|
|
@ -16,7 +16,6 @@
|
||||||
// A curated, ordered list of documents (or individual pages within them).
|
// A curated, ordered list of documents (or individual pages within them).
|
||||||
// Items are persisted exactly as stored. Missing files are detected and
|
// Items are persisted exactly as stored. Missing files are detected and
|
||||||
// removed with a warning when the session file is loaded.
|
// 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`.
|
// The on-disk representation of a session list is managed by `store.rs`.
|
||||||
|
|
||||||
|
|
@ -53,7 +52,9 @@ impl SessionItem {
|
||||||
pub struct SessionData {
|
pub struct SessionData {
|
||||||
pub name: String,
|
pub name: String,
|
||||||
pub kind: CollectionKind,
|
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)]
|
#[serde(default)]
|
||||||
pub path: Option<PathBuf>,
|
pub path: Option<PathBuf>,
|
||||||
pub items: Vec<SessionItem>,
|
pub items: Vec<SessionItem>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue