better lib structure/docs

This commit is contained in:
Smitty 2021-05-28 10:11:49 -04:00
parent dab2888135
commit 15b8542c97
3 changed files with 67 additions and 6 deletions

View file

@ -1,9 +1,10 @@
use serde::{Deserialize, Serialize};
/// A language used in the Wikibase data model.
/// A language, as used in the Wikibase data model.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
pub struct Lang(pub String);
/// Text that is in a certain language.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
pub struct Text {
pub text: String,