pub enum Event<'a> {
GroupStart(GroupStartEvent<'a>),
GroupEnd(GroupEndEvent),
Entry(EntryEvent<'a>),
ValueContinuation(ValueContinuationEvent<'a>),
}
Expand description
Reader event.
Variants§
GroupStart(GroupStartEvent<'a>)
A group with the given name is starting.
GroupEnd(GroupEndEvent)
A group has ended.
Entry(EntryEvent<'a>)
An entry.
ValueContinuation(ValueContinuationEvent<'a>)
An additional value for the previous entry.
Implementations§
Trait Implementations§
Source§impl<'a> TryFrom<Event<'a>> for EntryEvent<'a>
impl<'a> TryFrom<Event<'a>> for EntryEvent<'a>
Source§impl<'a> TryFrom<Event<'a>> for GroupEndEvent
impl<'a> TryFrom<Event<'a>> for GroupEndEvent
Source§impl<'a> TryFrom<Event<'a>> for GroupStartEvent<'a>
impl<'a> TryFrom<Event<'a>> for GroupStartEvent<'a>
impl<'a> Eq for Event<'a>
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
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