mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-25 08:02:06 +01:00
chore: removed redundant "Vec::new"
This commit is contained in:
parent
2d55d1aa47
commit
0859ce9a1f
1 changed files with 7 additions and 7 deletions
|
@ -365,7 +365,7 @@ pub struct MediaAnimation {
|
||||||
|
|
||||||
/// For messages with a caption, special entities like usernames, URLs,
|
/// For messages with a caption, special entities like usernames, URLs,
|
||||||
/// bot commands, etc. that appear in the caption.
|
/// bot commands, etc. that appear in the caption.
|
||||||
#[serde(default = "Vec::new", skip_serializing_if = "Vec::is_empty")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub caption_entities: Vec<MessageEntity>,
|
pub caption_entities: Vec<MessageEntity>,
|
||||||
|
|
||||||
/// `true`, if the message media is covered by a spoiler animation.
|
/// `true`, if the message media is covered by a spoiler animation.
|
||||||
|
@ -385,7 +385,7 @@ pub struct MediaAudio {
|
||||||
|
|
||||||
/// For messages with a caption, special entities like usernames, URLs,
|
/// For messages with a caption, special entities like usernames, URLs,
|
||||||
/// bot commands, etc. that appear in the caption.
|
/// bot commands, etc. that appear in the caption.
|
||||||
#[serde(default = "Vec::new", skip_serializing_if = "Vec::is_empty")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub caption_entities: Vec<MessageEntity>,
|
pub caption_entities: Vec<MessageEntity>,
|
||||||
|
|
||||||
/// The unique identifier of a media message group this message belongs
|
/// The unique identifier of a media message group this message belongs
|
||||||
|
@ -411,7 +411,7 @@ pub struct MediaDocument {
|
||||||
|
|
||||||
/// For messages with a caption, special entities like usernames, URLs,
|
/// For messages with a caption, special entities like usernames, URLs,
|
||||||
/// bot commands, etc. that appear in the caption.
|
/// bot commands, etc. that appear in the caption.
|
||||||
#[serde(default = "Vec::new", skip_serializing_if = "Vec::is_empty")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub caption_entities: Vec<MessageEntity>,
|
pub caption_entities: Vec<MessageEntity>,
|
||||||
|
|
||||||
/// The unique identifier of a media message group this message belongs
|
/// The unique identifier of a media message group this message belongs
|
||||||
|
@ -447,7 +447,7 @@ pub struct MediaPhoto {
|
||||||
|
|
||||||
/// For messages with a caption, special entities like usernames, URLs,
|
/// For messages with a caption, special entities like usernames, URLs,
|
||||||
/// bot commands, etc. that appear in the caption.
|
/// bot commands, etc. that appear in the caption.
|
||||||
#[serde(default = "Vec::new", skip_serializing_if = "Vec::is_empty")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub caption_entities: Vec<MessageEntity>,
|
pub caption_entities: Vec<MessageEntity>,
|
||||||
|
|
||||||
/// `true`, if the message media is covered by a spoiler animation.
|
/// `true`, if the message media is covered by a spoiler animation.
|
||||||
|
@ -482,7 +482,7 @@ pub struct MediaText {
|
||||||
|
|
||||||
/// For text messages, special entities like usernames, URLs, bot
|
/// For text messages, special entities like usernames, URLs, bot
|
||||||
/// commands, etc. that appear in the text.
|
/// commands, etc. that appear in the text.
|
||||||
#[serde(default = "Vec::new", skip_serializing_if = "Vec::is_empty")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub entities: Vec<MessageEntity>,
|
pub entities: Vec<MessageEntity>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -497,7 +497,7 @@ pub struct MediaVideo {
|
||||||
|
|
||||||
/// For messages with a caption, special entities like usernames, URLs,
|
/// For messages with a caption, special entities like usernames, URLs,
|
||||||
/// bot commands, etc. that appear in the caption.
|
/// bot commands, etc. that appear in the caption.
|
||||||
#[serde(default = "Vec::new", skip_serializing_if = "Vec::is_empty")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub caption_entities: Vec<MessageEntity>,
|
pub caption_entities: Vec<MessageEntity>,
|
||||||
|
|
||||||
/// `true`, if the message media is covered by a spoiler animation.
|
/// `true`, if the message media is covered by a spoiler animation.
|
||||||
|
@ -529,7 +529,7 @@ pub struct MediaVoice {
|
||||||
|
|
||||||
/// For messages with a caption, special entities like usernames, URLs,
|
/// For messages with a caption, special entities like usernames, URLs,
|
||||||
/// bot commands, etc. that appear in the caption.
|
/// bot commands, etc. that appear in the caption.
|
||||||
#[serde(default = "Vec::new", skip_serializing_if = "Vec::is_empty")]
|
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||||
pub caption_entities: Vec<MessageEntity>,
|
pub caption_entities: Vec<MessageEntity>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue