odict 3.3.0

A blazingly-fast dictionary file format for human languages
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::schema::EntryRef;
use serde::{Deserialize, Serialize};
use structural_convert::StructuralConvert;

#[derive(Serialize, PartialEq, Eq, Deserialize, StructuralConvert)]
#[convert(from(EntryRef))]
pub struct EntryRefJSON(pub String);

impl From<&str> for EntryRefJSON {
    fn from(s: &str) -> Self {
        Self(s.to_string())
    }
}