Crate merde_core

Source

Modules§

time
Provides Rfc3339, a wrapper around [time::OffsetDateTime] that implements [Serialize] and [Deserialize] when the right cargo features are enabled.

Structs§

Array
An array of Value items
ArrayStart
DefaultDeserOpinions
merde’s default opinions for deserialization: allow unknown fields, don’t fill in default values and keep key names as-is.
FieldSlot
Allows filling in a field of a struct while deserializing.
Map
A map, dictionary, object, whatever — with string keys.
MapStart

Enums§

CowBytes
A copy-on-write bytes type that uses CompactBytes for the “owned” variant.
CowStr
A copy-on-write string type that uses CompactString for the “owned” variant.
Event
EventType
MerdeError
A grab-bag of errors that can occur when deserializing. This isn’t super clean, not my proudest moment.
Value
Think serde_json::Value, but with a small string optimization, copy-on-write strings, etc. Might include other value types later.
ValueType
A content-less variant of the Value enum, used for reporting errors, see MerdeError::MismatchedType.

Traits§

DeserOpinions
Opinions you have about deserialization: should unknown fields be allowed, etc.
Deserialize
DeserializeOwned
Deserializer
DynDeserialize
DynDeserializer
DynDeserializerExt
DynSerialize
Dynamic dispatch version of Serialize.
DynSerializer
DynSerializerExt
IntoStatic
Allow turning a value into an “owned” variant, which can then be returned, moved, etc.
MetastackExt
Serialize
Serializer
WithLifetime
Allow instantiating a type with a lifetime parameter, which in turn lets us require Deserialize<'s> for CowStr<'s> for example, even when CowStr<'s> is erased behind a T.

Functions§

with_metastack_resume_point
Transforms a future into a future that will return Poll::Pending if there is not enough stack space to execute the future.