1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
use serde::Deserialize;

#[derive(Debug, Deserialize)]
/// A text in a specific language.
pub struct Text {
    /// ISO 639 language code for this text.
    ///
    /// Example: en
    pub lang: String,

    /// The actual text.
    pub text: String,
}