File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1051,6 +1051,12 @@ where
1051
1051
////////////////////////////////////////////////////////////////////////////////
1052
1052
1053
1053
/// A deserializer holding a `SeqAccess`.
1054
+ ///
1055
+ /// This deserializer will call [`Visitor::visit_seq`] for all requests except
1056
+ /// for [`Deserializer::deserialize_enum`]. In the latest case the enum will be
1057
+ /// deserialized from the first two elements of a sequence. The first element
1058
+ /// would be interpreted as a variant name and the second as a content of
1059
+ /// a variant. In case of unit variant the second element is optional.
1054
1060
#[ derive( Clone , Debug ) ]
1055
1061
pub struct SeqAccessDeserializer < A > {
1056
1062
seq : A ,
@@ -1487,6 +1493,12 @@ where
1487
1493
////////////////////////////////////////////////////////////////////////////////
1488
1494
1489
1495
/// A deserializer holding a `MapAccess`.
1496
+ ///
1497
+ /// This deserializer will call [`Visitor::visit_map`] for all requests except
1498
+ /// for [`Deserializer::deserialize_enum`]. In the latest case the enum will be
1499
+ /// deserialized from the first entry of a map. The map key would be interpreted
1500
+ /// as a variant name and the map value would be interpreted as a content of
1501
+ /// a variant.
1490
1502
#[ derive( Clone , Debug ) ]
1491
1503
pub struct MapAccessDeserializer < A > {
1492
1504
map : A ,
You can’t perform that action at this time.
0 commit comments