hocuspocus-extension-database 0.1.0

Database persistence extension for hocuspocus-rs (MVP): trait and types
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Debug, Clone)]
pub struct FetchContext {
    pub document_name: String,
}

#[derive(Debug)]
pub struct StoreContext<'a> {
    pub document_name: String,
    pub state: &'a [u8],
    pub updated_at_millis: i64,
}