@@ -355,7 +355,7 @@ pub struct MMCSAttachmentMeta {
355355 pub inline_attachment : Option < String > ,
356356 pub message_part : Option < String > ,
357357
358- pub file_size : NumOrString ,
358+ pub file_size : Option < NumOrString > ,
359359 pub uti_type : Option < String > ,
360360 pub mime_type : Option < String > ,
361361 pub name : Option < String > ,
@@ -374,7 +374,7 @@ impl Into<Option<MMCSAttachmentMeta>> for &Attachment {
374374 inline_attachment : Some ( "ia-0" . to_string ( ) ) ,
375375 message_part : Some ( "0" . to_string ( ) ) ,
376376
377- file_size : NumOrString :: Num ( _inline. len ( ) as u32 ) ,
377+ file_size : Some ( NumOrString :: Num ( _inline. len ( ) as u32 ) ) ,
378378 uti_type : Some ( self . uti_type . clone ( ) ) ,
379379 mime_type : Some ( self . mime . clone ( ) ) ,
380380 name : Some ( self . name . clone ( ) )
@@ -388,7 +388,7 @@ impl Into<Option<MMCSAttachmentMeta>> for &Attachment {
388388 inline_attachment : None ,
389389 message_part : None ,
390390
391- file_size : NumOrString :: Num ( mmcs. size as u32 ) ,
391+ file_size : Some ( NumOrString :: Num ( mmcs. size as u32 ) ) ,
392392 uti_type : Some ( self . uti_type . clone ( ) ) ,
393393 mime_type : Some ( self . mime . clone ( ) ) ,
394394 name : Some ( self . name . clone ( ) )
0 commit comments