pub enum EventData {
StreamStart {
encoding: Encoding,
},
StreamEnd,
DocumentStart {
version_directive: Option<VersionDirective>,
tag_directives: Vec<TagDirective>,
implicit: bool,
},
DocumentEnd {
implicit: bool,
},
Alias {
anchor: String,
},
Scalar {
anchor: Option<String>,
tag: Option<String>,
value: String,
plain_implicit: bool,
quoted_implicit: bool,
style: ScalarStyle,
},
SequenceStart {
anchor: Option<String>,
tag: Option<String>,
implicit: bool,
style: SequenceStyle,
},
SequenceEnd,
MappingStart {
anchor: Option<String>,
tag: Option<String>,
implicit: bool,
style: MappingStyle,
},
MappingEnd,
}Variants§
StreamStart
The stream parameters (for YAML_STREAM_START_EVENT).
StreamEnd
DocumentStart
The document parameters (for YAML_DOCUMENT_START_EVENT).
Fields
§
version_directive: Option<VersionDirective>The version directive.
§
tag_directives: Vec<TagDirective>The tag directives list.
DocumentEnd
The document end parameters (for YAML_DOCUMENT_END_EVENT).
Alias
The alias parameters (for YAML_ALIAS_EVENT).
Scalar
The scalar parameters (for YAML_SCALAR_EVENT).
Fields
§
style: ScalarStyleThe scalar style.
SequenceStart
The sequence parameters (for YAML_SEQUENCE_START_EVENT).
Fields
§
style: SequenceStyleThe sequence style.
SequenceEnd
MappingStart
The mapping parameters (for YAML_MAPPING_START_EVENT).
Fields
§
style: MappingStyleThe mapping style.
MappingEnd
Trait Implementations§
impl StructuralPartialEq for EventData
Auto Trait Implementations§
impl Freeze for EventData
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnwindSafe for EventData
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