Releases: Anders429/serde_assert
Releases · Anders429/serde_assert
v0.8.0
v0.7.1
v0.7.0
Added
Tokens
now implementsIntoIterator<Item = Token>
.- The
token
module is now public, containing bothToken
(which is also exposed in the root module) andTokens
. - Comparison with nested
Token::Unordered
s is now allowed and correctly handled. token::IntoIter
type for iterating over theTokens
struct
.
Changed
Deserializer::build()
now takes the tokens as a parameter. These tokens can now be any type that implementsIntoIterator<Item = Token>
.Tokens
is no longer exposed in the root module, instead being available attoken::Tokens
.- The internals of
Tokens
are no longer public.Tokens
can no longer be constructed by user code, and is now only returned by theSerializer
. - Comparison with a
Tokens
can now be done with any type that implementsIntoIterator<Item = &Token>
. de::Builder::build()
now only requires&self
instead of&mut self
.Error::ExpectedToken
variant has been replaced byError::ExpectedSeqEnd
,Error::ExpectedTupleEnd
,Error::ExpectedTupleStructEnd
,Error::ExpectedTupleVariantEnd
,Error::ExpectedMapEnd
,Error::ExpectedStructEnd
, andError::ExpectedStructVariantEnd
variants.
Removed
From<Token>
implementation forserde::de::Unexpected
.PartialEq
implementation forToken
.Display
implementation forToken
.- Dependency on
hashbrown
crate.
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
Added
SerializeStructAs
enum
and accompanyingBuilder::serialize_struct_as()
method for specifying whetherstruct
s should be serialized asserde
struct or sequence types.SerializeStruct
type to provide a more specializedserde::SerializeStruct
implementation.
Changed
Deserializer::deserialize_struct
can now interpret bothStruct
andSeq
Token
s.
Removed
CompoundSerializer
no longer implementsserde::SerializeStruct
.