pub enum EventType {
StreamStart,
StreamEnd,
DocumentStart {
version: Option<(u8, u8)>,
tags: Vec<(String, String)>,
implicit: bool,
},
DocumentEnd {
implicit: bool,
},
Scalar {
anchor: Option<String>,
tag: Option<String>,
value: String,
plain_implicit: bool,
quoted_implicit: bool,
style: ScalarStyle,
},
SequenceStart {
anchor: Option<String>,
tag: Option<String>,
flow_style: bool,
},
SequenceEnd,
MappingStart {
anchor: Option<String>,
tag: Option<String>,
flow_style: bool,
},
MappingEnd,
Alias {
anchor: String,
},
}Expand description
Types of YAML parsing events
Variants§
StreamStart
Start of stream
StreamEnd
End of stream
DocumentStart
Document start
DocumentEnd
Document end
Scalar
Scalar value
Fields
§
style: ScalarStyleStyle
SequenceStart
Sequence start
SequenceEnd
Sequence end
MappingStart
Mapping start
MappingEnd
Mapping end
Alias
Alias reference
Trait Implementations§
impl Eq for EventType
impl StructuralPartialEq for EventType
Auto Trait Implementations§
impl Freeze for EventType
impl RefUnwindSafe for EventType
impl Send for EventType
impl Sync for EventType
impl Unpin for EventType
impl UnwindSafe for EventType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.