1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Reading progress tracking for documents.
//!
//! This module defines the [`Progress`] struct which represents a user's reading position
//! and metadata for a specific document. Progress is synchronized across devices and
//! includes information about the device, position, and timestamp.
use ;
/// Reading progress information for a document.
///
/// This struct contains all the information about a user's reading progress
/// in a specific document, including device information and the current position.
///
/// # Example
///
/// ```
/// use korrosync::model::Progress;
///
/// let progress = Progress {
/// device_id: "device-123".to_string(),
/// device: "Kindle Paperwhite".to_string(),
/// percentage: 67.5,
/// progress: "Page 135 of 200".to_string(),
/// timestamp: 1609459200000,
/// };
/// ```