Better documentation for Text

This commit is contained in:
Smitty 2021-05-28 12:52:10 -04:00
parent 2b0db79c3e
commit 44e1fe2fff

View file

@ -7,6 +7,8 @@ pub struct Lang(pub String);
/// Text that is in a certain language. /// Text that is in a certain language.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)] #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
pub struct Text { pub struct Text {
/// The raw text.
pub text: String, pub text: String,
/// The language of the text.
pub lang: Lang, pub lang: Lang,
} }