pub enum Warning {
StoryMetadataMalformed,
StoryTitleMissing,
PassageMetadataMalformed(String),
PassageTagsMalformed(String),
PassageDuplicated(String),
PassageNameMissing,
}
Expand description
Possible warnings during parsing.
Per specification, the parser is quite generous and generates many things as warnings instead of errors.
Variants§
StoryMetadataMalformed
The story metadata wasn’t a valid JSON object.
StoryTitleMissing
The story’s title is missing.
PassageMetadataMalformed(String)
The passage metadata wasn’t a valid inline JSON object.
The argument is the passage name.
PassageTagsMalformed(String)
The passage tags weren’t closed.
The argument is the passage name.
PassageDuplicated(String)
2 passages with the same name were found. The argument is the passage name.
PassageNameMissing
A passage is missing it’s name.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Warning
impl RefUnwindSafe for Warning
impl Send for Warning
impl Sync for Warning
impl Unpin for Warning
impl UnwindSafe for Warning
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more