@@ -94,16 +94,16 @@ pub(crate) enum SupportedField {
9494Type ( DocType )  = 4 , 
9595 /// `reply` field. 
9696Reply ( DocumentRefs )  = 5 , 
97-  /// `collabs` field. 
98- Collabs ( Collaborators )  = 7 , 
9997 /// `section` field. 
100- Section ( Section )  = 8 , 
98+ Section ( Section )  = 6 , 
10199 /// `template` field. 
102- Template ( DocumentRefs )  = 9 , 
100+ Template ( DocumentRefs )  = 7 , 
103101 /// `parameters` field. 
104- Parameters ( DocumentRefs )  = 10 , 
102+ Parameters ( DocumentRefs )  = 8 , 
103+  /// `collaborators` field. 
104+ Collaborators ( Collaborators )  = 9 , 
105105 /// `Content-Encoding` field. 
106- ContentEncoding ( ContentEncoding )  = 11 , 
106+ ContentEncoding ( ContentEncoding )  = 10 , 
107107} 
108108
109109impl  SupportedLabel  { 
@@ -117,7 +117,7 @@ impl SupportedLabel {
117117 Label :: Str ( "ver" )  => Some ( Self :: Ver ) , 
118118 Label :: Str ( "type" )  => Some ( Self :: Type ) , 
119119 Label :: Str ( "reply" )  => Some ( Self :: Reply ) , 
120-  Label :: Str ( "collabs " )  => Some ( Self :: Collabs ) , 
120+  Label :: Str ( "collaborators " )  => Some ( Self :: Collaborators ) , 
121121 Label :: Str ( "section" )  => Some ( Self :: Section ) , 
122122 Label :: Str ( "template" )  => Some ( Self :: Template ) , 
123123 Label :: Str ( "parameters"  | "brand_id"  | "campaign_id"  | "category_id" )  => { 
@@ -139,7 +139,7 @@ impl SupportedLabel {
139139 Self :: Ver  => Label :: Str ( "ver" ) , 
140140 Self :: Type  => Label :: Str ( "type" ) , 
141141 Self :: Reply  => Label :: Str ( "reply" ) , 
142-  Self :: Collabs  => Label :: Str ( "collabs " ) , 
142+  Self :: Collaborators  => Label :: Str ( "collaborators " ) , 
143143 Self :: Section  => Label :: Str ( "section" ) , 
144144 Self :: Template  => Label :: Str ( "template" ) , 
145145 Self :: Parameters  => Label :: Str ( "parameters" ) , 
@@ -167,7 +167,9 @@ impl<'de> serde::de::DeserializeSeed<'de> for SupportedLabel {
167167 SupportedLabel :: Ver  => Deserialize :: deserialize ( d) . map ( SupportedField :: Ver ) , 
168168 SupportedLabel :: Type  => Deserialize :: deserialize ( d) . map ( SupportedField :: Type ) , 
169169 SupportedLabel :: Reply  => Deserialize :: deserialize ( d) . map ( SupportedField :: Reply ) , 
170-  SupportedLabel :: Collabs  => Deserialize :: deserialize ( d) . map ( SupportedField :: Collabs ) , 
170+  SupportedLabel :: Collaborators  => { 
171+  Deserialize :: deserialize ( d) . map ( SupportedField :: Collaborators ) 
172+  } , 
171173 SupportedLabel :: Section  => Deserialize :: deserialize ( d) . map ( SupportedField :: Section ) , 
172174 SupportedLabel :: Template  => Deserialize :: deserialize ( d) . map ( SupportedField :: Template ) , 
173175 SupportedLabel :: Parameters  => { 
@@ -218,7 +220,7 @@ impl minicbor::Decode<'_, crate::decode_context::DecodeContext> for Option<Suppo
218220 } , 
219221 SupportedLabel :: Type  => d. decode_with ( ctx) . map ( SupportedField :: Type ) , 
220222 SupportedLabel :: Reply  => d. decode_with ( ctx) . map ( SupportedField :: Reply ) , 
221-  SupportedLabel :: Collabs  => d. decode ( ) . map ( SupportedField :: Collabs ) , 
223+  SupportedLabel :: Collaborators  => d. decode ( ) . map ( SupportedField :: Collaborators ) , 
222224 SupportedLabel :: Section  => d. decode ( ) . map ( SupportedField :: Section ) , 
223225 SupportedLabel :: Template  => d. decode_with ( ctx) . map ( SupportedField :: Template ) , 
224226 SupportedLabel :: Parameters  => d. decode_with ( ctx) . map ( SupportedField :: Parameters ) , 
@@ -255,7 +257,7 @@ impl minicbor::Encode<()> for SupportedField {
255257 | SupportedField :: Template ( document_ref) 
256258 | SupportedField :: Parameters ( document_ref)  => document_ref. encode ( e,  ctx) , 
257259 SupportedField :: Type ( doc_type)  => doc_type. encode ( e,  ctx) , 
258-  SupportedField :: Collabs ( collabs )  => collabs . encode ( e,  ctx) , 
260+  SupportedField :: Collaborators ( collaborators )  => collaborators . encode ( e,  ctx) , 
259261 SupportedField :: Section ( section)  => section. encode ( e,  ctx) , 
260262 SupportedField :: ContentEncoding ( content_encoding)  => content_encoding. encode ( e,  ctx) , 
261263 } 
0 commit comments