New structure.
This commit is contained in:
3
dict/.gitignore
vendored
Normal file
3
dict/.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
/target
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
||||
8
dict/Cargo.toml
Normal file
8
dict/Cargo.toml
Normal file
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "dict"
|
||||
version = "0.1.0"
|
||||
authors = ["Anders Olsson <anders.e.olsson@gmail.com>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
isolang = "1.0"
|
||||
12
dict/src/lib.rs
Normal file
12
dict/src/lib.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
use isolang::Language;
|
||||
|
||||
pub struct Entry {
|
||||
language: Language,
|
||||
orthographic: String,
|
||||
translation: Vec<Translation>,
|
||||
}
|
||||
|
||||
pub struct Translation {
|
||||
language: Language,
|
||||
translations: Vec<String>,
|
||||
}
|
||||
Reference in New Issue
Block a user