kobo-db-tools 0.0.13

A Rust library to parse and analyze Kobo e-reader SQLite databases.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use chrono::{DateTime, Utc};

use super::brightness_value::Brightness;
#[derive(Debug, Clone)]
pub struct BrightnessEvent {
    pub brightness: Brightness,
    pub timestamp: DateTime<Utc>,
}

impl BrightnessEvent {
    pub fn new(brightness: Brightness, timestamp: DateTime<Utc>) -> Self {
        Self {
            brightness,
            timestamp,
        }
    }
}