better lib structure/docs
This commit is contained in:
parent
dab2888135
commit
15b8542c97
3 changed files with 67 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue