Better documentation for Text
This commit is contained in:
parent
2b0db79c3e
commit
44e1fe2fff
1 changed files with 2 additions and 0 deletions
|
@ -7,6 +7,8 @@ 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 {
|
||||
/// The raw text.
|
||||
pub text: String,
|
||||
/// The language of the text.
|
||||
pub lang: Lang,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue