lb-rs 26.4.13

The rust library for interacting with your lockbook.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use serde::{Deserialize, Serialize};

use uuid::Uuid;

/// Persistant for a device across sessions, would only be destoreyd on re-download
/// or destruction of db-rs
#[derive(Clone, Copy, Serialize, Deserialize, PartialEq, Eq, Debug, Hash)]
pub struct LbID(Uuid);

impl LbID {
    pub fn generate() -> Self {
        LbID(Uuid::new_v4())
    }
}