Struct parse_wiktionary_cs::Definition
source · pub struct Definition<'a> {
pub definition: Vec<Flowing<'a>>,
pub examples: Vec<Cow<'a, str>>,
pub labels: Vec<Cow<'a, str>>,
pub phrase: Option<Cow<'a, str>>,
}
Expand description
A single definition from a list of definitions of an entry.
Parsed from a single list item in the section význam
.
Fields§
§definition: Vec<Flowing<'a>>
A series of elements to display as the definition.
examples: Vec<Cow<'a, str>>
List of example sentences belonging to the definition, from the template Příklad
.
labels: Vec<Cow<'a, str>>
List of labels, from the template Příznaky
.
Duplicate labels are not allowed.
phrase: Option<Cow<'a, str>>
A text to display as a phrase, if any, from the template Vazba
.
Trait Implementations§
source§impl<'a> Debug for Definition<'a>
impl<'a> Debug for Definition<'a>
source§impl<'de, 'a> Deserialize<'de> for Definition<'a>
impl<'de, 'a> Deserialize<'de> for Definition<'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