kanjidic_types/reading.rs
1use crate::{Kunyomi, PinYin};
2use serde::{Deserialize, Serialize};
3
4/// A particular reading or pronunciation of a kanji.
5#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Serialize, Deserialize)]
6#[serde(tag = "tag", content = "content")]
7pub enum Reading {
8 /// The modern romanization of the Chinese reading.
9 PinYin(PinYin),
10 /// The romanized form of the Korean reading.
11 KoreanRomanized(String),
12 /// The Korean reading of the kanji in Hangul.
13 KoreanHangul(String),
14 /// The Vietnamese reading supplied by Minh Chau Pham.
15 Vietnam(String),
16 /// The onyomi reading of the kanji in katakana.
17 Onyomi(String),
18 /// The kunyomi reading of the kanji in hiragana or katakana.
19 Kunyomi(Kunyomi),
20}