glues-core 0.1.0

Headless state management module for Glues Notes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::types::{DirectoryId, NoteId};

#[derive(Clone, Debug)]
pub struct Note {
    pub id: NoteId,
    pub directory_id: DirectoryId,
    pub name: String,
}

#[derive(Clone, Debug)]
pub struct Directory {
    pub id: DirectoryId,
    pub parent_id: DirectoryId,
    pub name: String,
}