Crate serde_saphyr Copy item path Source pub use de::Budget ;
pub use de::Options ;
pub use de::DuplicateKeyPolicy ;
budget Streaming YAML budget checker using saphyr-parser (YAML 1.2). options ArcAnchor Wrap an Arc<T>
to opt-in to anchor emission for that field. ArcWeakAnchor Wrap an std::sync::Weak<T>
to opt-in; if dangling it serializes as null
. FlowMap Force a mapping to be emitted in flow style: {k1: v1, k2: v2}
. FlowSeq Force a sequence to be emitted in flow style: [a, b, c]
. FoldStr Block folded string (>
), lines are folded by YAML consumers. LitStr Block literal string (|
), lines are preserved. Location Row/column location within the source YAML document (1-indexed). RcAnchor Wrap an Rc<T>
to opt-in to anchor emission for that field. RcWeakAnchor Wrap an std::rc::Weak<T>
to opt-in; if dangling it serializes as null
. ReaderDeserializer Deserializer over an owned in-memory YAML buffer. SerializerOptions Error Error type compatible with serde::de::Error
. from_multiple Deserialize multiple YAML documents from a single string into a vector of T
.
Completely empty documents are ignored and not included into returned vector. from_multiple_with_options Deserialize multiple YAML documents into a vector with configurable Options
. from_reader Deserialize a single YAML document from any std::io::Read
. from_slice Deserialize a single YAML document from a UTF-8 byte slice. from_slice_multiple Deserialize multiple YAML documents from a UTF-8 byte slice into a vector of T
. from_slice_multiple_with_options Deserialize multiple YAML documents from bytes with configurable Options
.
Completely empty documents are ignored and not included into returned vector. from_slice_with_options Deserialize a single YAML document from a UTF-8 byte slice with configurable Options
. from_str Deserialize any T: serde::de::DeserializeOwned
directly from a YAML string. from_str_with_options Deserialize a single YAML document with configurable Options
. to_string Serialize a value to a YAML String
. to_string_multiple Serialize multiple documents into a YAML string. to_writer Serialize a value to a fmt::Write
with default indentation (2 spaces). to_writer_with_options Serialize a value to a writer using SerializerOptions
.