diff options
| author | Matthieu Pignolet <matthieu@puffer.fish> | 2025-10-30 16:04:25 +0100 |
|---|---|---|
| committer | Matthieu Pignolet <matthieu@puffer.fish> | 2025-10-30 16:04:25 +0100 |
| commit | 09a0afaff012b88f79afde35a3c2ebaeb010a176 (patch) | |
| tree | 874fe676977f56c5456e4cead31e1a6c86bc40dd /libs/db/src/save.rs | |
| parent | c951f54be999fb7e508039ba23fa5b1fe7035743 (diff) | |
feat: commit allfeat/twilight-discord
Diffstat (limited to 'libs/db/src/save.rs')
| -rw-r--r-- | libs/db/src/save.rs | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libs/db/src/save.rs b/libs/db/src/save.rs index e1b3577..87a2736 100644 --- a/libs/db/src/save.rs +++ b/libs/db/src/save.rs @@ -1,10 +1,12 @@ -use crate::{trie::Trie, types::{GraphemeString, PhonemeString}}; +use crate::{ + trie::Trie, + types::{GraphemeString, PhonemeString}, +}; use serde::{Deserialize, Serialize}; use std::collections::HashMap; -#[derive(Debug, Deserialize, Serialize, Default)] -pub struct Save<'a> { - #[serde(borrow = "'a")] - pub trie: Trie<'a>, +#[derive(Debug, Deserialize, Serialize, Default, Clone)] +pub struct Save { + pub trie: Trie, pub reverse_index: HashMap<PhonemeString, GraphemeString>, } |
