Struct parse_wiktionary_en::Warning
source · pub struct Warning {
pub end: usize,
pub language: Option<Language>,
pub message: WarningMessage,
pub start: usize,
}
Expand description
Warning from the parser telling that something is not well-formed.
When a warning occurs, it’s not guaranteed that the text near the warning is parsed correctly. Usually the data that could not be unambiguously parsed due to the warning is excluded from the output, to make sure the output doesn’t contain incorrectly parsed data.
Fields§
§end: usize
The byte position in the wiki text where the warning ends.
language: Option<Language>
The language of the language section in which the warning occurred, if any.
message: WarningMessage
An identifier for the kind of warning.
start: usize
The byte position in the wiki text where the warning starts.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Warning
impl<'de> Deserialize<'de> for Warning
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