merriam_webster_model/entry/
called_also_note.rs1use super::{labels::ParenthesizedSubjectStatusLabel, pronunciations::Pronunciations};
2
3pub type CalledAlsoNote = (CalledAlsoNoteKey, InnerCalledAlsoNote);
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
6pub enum CalledAlsoNoteKey {
7 #[serde(rename = "ca")]
8 Key,
9}
10
11#[derive(Debug, Clone, Serialize, Deserialize)]
12pub struct InnerCalledAlsoNote {
13 pub intro: String,
14 #[serde(rename = "cats")]
15 pub targets: Vec<CalledAlsoTarget>,
16}
17
18#[derive(Debug, Clone, Serialize, Deserialize)]
19pub struct CalledAlsoTarget {
20 #[serde(rename = "cat")]
21 pub value: String,
22 #[serde(rename = "catref")]
23 pub reference: Option<String>,
24 #[serde(rename = "pn")]
25 pub parenthesized_number: Option<String>,
26 #[serde(rename = "prs")]
27 pub pronunciations: Option<Pronunciations>,
28 #[serde(rename = "pls")]
29 pub parenthesized_subject_status_labels: Option<ParenthesizedSubjectStatusLabel>,
30}