@@ -54,7 +54,10 @@ pub enum SpecialActivityCategory {
5454
5555#[ derive( Debug , Serialize , Deserialize , Clone , PartialEq ) ]
5656pub struct ActivityMember {
57- #[ serde( serialize_with = "objectid_to_string" , deserialize_with = "string_to_objectid" ) ]
57+ #[ serde(
58+ serialize_with = "objectid_to_string" ,
59+ deserialize_with = "string_to_objectid"
60+ ) ]
5861 pub _id : ObjectId , // ObjectId
5962 pub status : ActivityMemberStatus ,
6063 pub impression : Option < String > ,
@@ -69,7 +72,10 @@ pub struct ActivityMemberHistory {
6972 pub impression : String ,
7073 pub duration : f64 ,
7174 pub time : String ,
72- #[ serde( serialize_with = "objectid_to_string" , deserialize_with = "string_to_objectid" ) ]
75+ #[ serde(
76+ serialize_with = "objectid_to_string" ,
77+ deserialize_with = "string_to_objectid"
78+ ) ]
7379 pub actioner : ObjectId , // ObjectId
7480 pub action : ActivityMemberStatus ,
7581}
@@ -132,7 +138,10 @@ pub struct Activity {
132138 pub created_at : u64 ,
133139 #[ serde( deserialize_with = "datetime_or_u64" ) ]
134140 pub updated_at : u64 ,
135- #[ serde( serialize_with = "objectid_to_string" , deserialize_with = "string_to_objectid" ) ]
141+ #[ serde(
142+ serialize_with = "objectid_to_string" ,
143+ deserialize_with = "string_to_objectid"
144+ ) ]
136145 pub creator : ObjectId , // ObjectId
137146 pub status : ActivityStatus ,
138147 pub members : Option < Vec < ActivityMember > > ,
0 commit comments