Enum parse_wiktionary_cs::Flowing
source · pub enum Flowing<'a> {
Italic,
Labels {
labels: Vec<Cow<'a, str>>,
},
Link {
target: Cow<'a, str>,
text: Cow<'a, str>,
},
Plural,
Qualifier {
value: Cow<'a, str>,
},
Text {
value: Cow<'a, str>,
},
Translation {
gender: Option<Cow<'a, str>>,
term: Cow<'a, str>,
},
Unknown {
value: Cow<'a, str>,
},
}
Expand description
An element in a sequence that allows different kinds of elements.
Variants§
Italic
Toggle italic.
Parsed from the wiki text ''
.
Labels
List of labels, from the template Příznak2
.
Duplicate labels are not allowed.
Link
Fields
Link.
Parsed from wiki text starting with [[
.
Plural
Indication that something is a plural, from the template množ
.
Qualifier
Qualifier, from the template Upřesnění
.
Text
Chunk of plain text.
Translation
Fields
Link to a foreign word in translations, from the template P
.
Unknown
Element that could not be recognized.
Trait Implementations§
source§impl<'de, 'a> Deserialize<'de> for Flowing<'a>
impl<'de, 'a> Deserialize<'de> for Flowing<'a>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more