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
use crate::model::brightness::brightness_event::BrightnessEvent;

#[derive(Debug, Clone, Default)]
pub struct BrightnessHistory {
    pub events: Vec<BrightnessEvent>,
}

impl BrightnessHistory {
    pub fn new() -> Self {
        Self::default()
    }

    pub fn insert(&mut self, brightness: BrightnessEvent) {
        self.events.push(brightness);
    }
}