@@ -51,7 +51,6 @@ mod raw;
5151
5252/// Represents a message data.
5353#[ derive( Clone , Debug , Deserialize , PartialEq , Serialize ) ]
54- #[ allow( clippy:: large_enum_variant) ]
5554#[ serde( rename_all = "snake_case" ) ]
5655pub enum MessageData {
5756 /// Information about the animation.
@@ -134,11 +133,11 @@ pub enum MessageData {
134133 ) ]
135134 ForumTopicReopened ,
136135 /// Information about the game.
137- Game ( Game ) ,
136+ Game ( Box < Game > ) ,
138137 /// A service message about a sent or received regular gift.
139- Gift ( GiftInfo ) ,
138+ Gift ( Box < GiftInfo > ) ,
140139 /// A service message about upgrade of a gift was purchased after the gift was sent.
141- GiftUpgradeSent ( GiftInfo ) ,
140+ GiftUpgradeSent ( Box < GiftInfo > ) ,
142141 /// The 'General' forum topic hidden.
143142 #[ serde(
144143 deserialize_with = "RawDataEmpty::deserialize_value" ,
@@ -203,7 +202,7 @@ pub enum MessageData {
203202 /// A service message about a refunded payment, information about the payment.
204203 RefundedPayment ( RefundedPayment ) ,
205204 /// Information about the sticker.
206- Sticker ( Sticker ) ,
205+ Sticker ( Box < Sticker > ) ,
207206 /// A forwarded story.
208207 Story ( Story ) ,
209208 /// Service message: a suggested post was approved.
@@ -217,7 +216,7 @@ pub enum MessageData {
217216 /// Service message: payment for a suggested post was refunded.
218217 SuggestedPostRefunded ( SuggestedPostRefunded ) ,
219218 /// Information about the successful payment.
220- SuccessfulPayment ( SuccessfulPayment ) ,
219+ SuccessfulPayment ( Box < SuccessfulPayment > ) ,
221220 /// The supergroup has been created.
222221 ///
223222 /// This field can‘t be received in a message coming through updates,
@@ -231,7 +230,7 @@ pub enum MessageData {
231230 ) ]
232231 SupergroupChatCreated ,
233232 /// A service message about a sent or received unique gift.
234- UniqueGift ( UniqueGiftInfo ) ,
233+ UniqueGift ( Box < UniqueGiftInfo > ) ,
235234 /// A user was shared with the bot.
236235 UsersShared ( MessageDataUsersShared ) ,
237236 /// Information about the venue.
@@ -260,7 +259,7 @@ pub enum MessageData {
260259 WriteAccessAllowed ( MessageDataWriteAccess ) ,
261260 /// Describes the audio.
262261 #[ serde( untagged) ]
263- Audio ( MessageDataAudio ) ,
262+ Audio ( Box < MessageDataAudio > ) ,
264263 /// Describes the document.
265264 #[ serde( untagged) ]
266265 Document ( MessageDataDocument ) ,
@@ -276,7 +275,7 @@ pub enum MessageData {
276275 Text ( Text ) ,
277276 /// Describes the video.
278277 #[ serde( untagged) ]
279- Video ( MessageDataVideo ) ,
278+ Video ( Box < MessageDataVideo > ) ,
280279 /// Describes the voice.
281280 #[ serde( untagged) ]
282281 Voice ( MessageDataVoice ) ,
0 commit comments