pub struct Message {Show 113 fields
pub message_id: i32,
pub message_thread_id: Option<i32>,
pub direct_messages_topic: Option<Box<DirectMessagesTopic>>,
pub from: Option<Box<User>>,
pub sender_chat: Option<Box<Chat>>,
pub sender_boost_count: Option<u32>,
pub sender_business_bot: Option<Box<User>>,
pub sender_tag: Option<String>,
pub date: u64,
pub guest_query_id: Option<String>,
pub business_connection_id: Option<String>,
pub chat: Box<Chat>,
pub forward_origin: Option<Box<MessageOrigin>>,
pub is_topic_message: Option<bool>,
pub is_automatic_forward: Option<bool>,
pub reply_to_message: Option<Box<Self>>,
pub external_reply: Option<Box<ExternalReplyInfo>>,
pub quote: Option<Box<TextQuote>>,
pub reply_to_story: Option<Box<Story>>,
pub reply_to_checklist_task_id: Option<i64>,
pub reply_to_poll_option_id: Option<String>,
pub via_bot: Option<Box<User>>,
pub guest_bot_caller_user: Option<Box<User>>,
pub guest_bot_caller_chat: Option<Box<Chat>>,
pub edit_date: Option<u64>,
pub has_protected_content: Option<bool>,
pub is_from_offline: Option<bool>,
pub is_paid_post: Option<bool>,
pub media_group_id: Option<String>,
pub author_signature: Option<String>,
pub text: Option<String>,
pub entities: Option<Vec<MessageEntity>>,
pub link_preview_options: Option<LinkPreviewOptions>,
pub suggested_post_info: Option<SuggestedPostInfo>,
pub effect_id: Option<String>,
pub animation: Option<Box<Animation>>,
pub audio: Option<Box<Audio>>,
pub document: Option<Box<Document>>,
pub live_photo: Option<Box<LivePhoto>>,
pub paid_media: Option<Box<PaidMediaInfo>>,
pub photo: Option<Vec<PhotoSize>>,
pub sticker: Option<Box<Sticker>>,
pub story: Option<Box<Story>>,
pub video: Option<Box<Video>>,
pub video_note: Option<Box<VideoNote>>,
pub voice: Option<Box<Voice>>,
pub caption: Option<String>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub show_caption_above_media: Option<bool>,
pub has_media_spoiler: Option<bool>,
pub checklist: Option<Checklist>,
pub contact: Option<Box<Contact>>,
pub dice: Option<Box<Dice>>,
pub game: Option<Box<Game>>,
pub poll: Option<Box<Poll>>,
pub venue: Option<Box<Venue>>,
pub location: Option<Box<Location>>,
pub new_chat_members: Option<Vec<User>>,
pub left_chat_member: Option<Box<User>>,
pub chat_owner_left: Option<Box<ChatOwnerLeft>>,
pub chat_owner_changed: Option<Box<ChatOwnerChanged>>,
pub new_chat_title: Option<String>,
pub new_chat_photo: Option<Vec<PhotoSize>>,
pub delete_chat_photo: Option<bool>,
pub group_chat_created: Option<bool>,
pub supergroup_chat_created: Option<bool>,
pub channel_chat_created: Option<bool>,
pub message_auto_delete_timer_changed: Option<Box<MessageAutoDeleteTimerChanged>>,
pub migrate_to_chat_id: Option<i64>,
pub migrate_from_chat_id: Option<i64>,
pub pinned_message: Option<Box<MaybeInaccessibleMessage>>,
pub invoice: Option<Box<Invoice>>,
pub successful_payment: Option<Box<SuccessfulPayment>>,
pub refunded_payment: Option<Box<RefundedPayment>>,
pub users_shared: Option<Box<UsersShared>>,
pub chat_shared: Option<Box<ChatShared>>,
pub gift: Option<GiftInfo>,
pub unique_gift: Option<UniqueGiftInfo>,
pub gift_upgrade_sent: Option<GiftInfo>,
pub connected_website: Option<String>,
pub write_access_allowed: Option<WriteAccessAllowed>,
pub passport_data: Option<Box<PassportData>>,
pub proximity_alert_triggered: Option<Box<ProximityAlertTriggered>>,
pub boost_added: Option<Box<ChatBoostAdded>>,
pub chat_background_set: Option<Box<ChatBackground>>,
pub checklist_tasks_done: Option<Box<ChecklistTasksDone>>,
pub checklist_tasks_added: Option<Box<ChecklistTasksAdded>>,
pub direct_message_price_changed: Option<Box<DirectMessagePriceChanged>>,
pub forum_topic_created: Option<Box<ForumTopicCreated>>,
pub forum_topic_edited: Option<Box<ForumTopicEdited>>,
pub forum_topic_closed: Option<Box<ForumTopicClosed>>,
pub forum_topic_reopened: Option<Box<ForumTopicReopened>>,
pub general_forum_topic_hidden: Option<Box<GeneralForumTopicHidden>>,
pub general_forum_topic_unhidden: Option<Box<GeneralForumTopicUnhidden>>,
pub giveaway_created: Option<GiveawayCreated>,
pub giveaway: Option<Giveaway>,
pub giveaway_winners: Option<GiveawayWinners>,
pub giveaway_completed: Option<GiveawayCompleted>,
pub managed_bot_created: Option<Box<ManagedBotCreated>>,
pub paid_message_price_changed: Option<PaidMessagePriceChanged>,
pub suggested_post_approved: Option<Box<SuggestedPostApproved>>,
pub suggested_post_approval_failed: Option<Box<SuggestedPostApprovalFailed>>,
pub suggested_post_declined: Option<Box<SuggestedPostDeclined>>,
pub poll_option_added: Option<Box<PollOptionAdded>>,
pub poll_option_deleted: Option<Box<PollOptionDeleted>>,
pub suggested_post_paid: Option<Box<SuggestedPostPaid>>,
pub suggested_post_refunded: Option<Box<SuggestedPostRefunded>>,
pub video_chat_scheduled: Option<Box<VideoChatScheduled>>,
pub video_chat_started: Option<Box<VideoChatStarted>>,
pub video_chat_ended: Option<Box<VideoChatEnded>>,
pub video_chat_participants_invited: Option<Box<VideoChatParticipantsInvited>>,
pub web_app_data: Option<Box<WebAppData>>,
pub reply_markup: Option<Box<InlineKeyboardMarkup>>,
}Fields§
§message_id: i32§message_thread_id: Option<i32>§direct_messages_topic: Option<Box<DirectMessagesTopic>>§from: Option<Box<User>>§sender_chat: Option<Box<Chat>>§sender_boost_count: Option<u32>§sender_business_bot: Option<Box<User>>§sender_tag: Option<String>§date: u64§guest_query_id: Option<String>§business_connection_id: Option<String>§chat: Box<Chat>§forward_origin: Option<Box<MessageOrigin>>§is_topic_message: Option<bool>§is_automatic_forward: Option<bool>§reply_to_message: Option<Box<Self>>§external_reply: Option<Box<ExternalReplyInfo>>§quote: Option<Box<TextQuote>>§reply_to_story: Option<Box<Story>>§reply_to_checklist_task_id: Option<i64>§reply_to_poll_option_id: Option<String>§via_bot: Option<Box<User>>§guest_bot_caller_user: Option<Box<User>>§guest_bot_caller_chat: Option<Box<Chat>>§edit_date: Option<u64>§has_protected_content: Option<bool>§is_from_offline: Option<bool>§is_paid_post: Option<bool>§media_group_id: Option<String>§text: Option<String>§entities: Option<Vec<MessageEntity>>§link_preview_options: Option<LinkPreviewOptions>§suggested_post_info: Option<SuggestedPostInfo>§effect_id: Option<String>§animation: Option<Box<Animation>>§audio: Option<Box<Audio>>§document: Option<Box<Document>>§live_photo: Option<Box<LivePhoto>>§paid_media: Option<Box<PaidMediaInfo>>§photo: Option<Vec<PhotoSize>>§sticker: Option<Box<Sticker>>§story: Option<Box<Story>>§video: Option<Box<Video>>§video_note: Option<Box<VideoNote>>§voice: Option<Box<Voice>>§caption: Option<String>§caption_entities: Option<Vec<MessageEntity>>§show_caption_above_media: Option<bool>§has_media_spoiler: Option<bool>§checklist: Option<Checklist>§contact: Option<Box<Contact>>§dice: Option<Box<Dice>>§game: Option<Box<Game>>§poll: Option<Box<Poll>>§venue: Option<Box<Venue>>§location: Option<Box<Location>>§new_chat_members: Option<Vec<User>>§left_chat_member: Option<Box<User>>§chat_owner_left: Option<Box<ChatOwnerLeft>>§chat_owner_changed: Option<Box<ChatOwnerChanged>>§new_chat_title: Option<String>§new_chat_photo: Option<Vec<PhotoSize>>§delete_chat_photo: Option<bool>§group_chat_created: Option<bool>§supergroup_chat_created: Option<bool>§channel_chat_created: Option<bool>§message_auto_delete_timer_changed: Option<Box<MessageAutoDeleteTimerChanged>>§migrate_to_chat_id: Option<i64>§migrate_from_chat_id: Option<i64>§pinned_message: Option<Box<MaybeInaccessibleMessage>>§invoice: Option<Box<Invoice>>§successful_payment: Option<Box<SuccessfulPayment>>§refunded_payment: Option<Box<RefundedPayment>>§gift: Option<GiftInfo>§unique_gift: Option<UniqueGiftInfo>§gift_upgrade_sent: Option<GiftInfo>§connected_website: Option<String>§write_access_allowed: Option<WriteAccessAllowed>§passport_data: Option<Box<PassportData>>§proximity_alert_triggered: Option<Box<ProximityAlertTriggered>>§boost_added: Option<Box<ChatBoostAdded>>§chat_background_set: Option<Box<ChatBackground>>§checklist_tasks_done: Option<Box<ChecklistTasksDone>>§checklist_tasks_added: Option<Box<ChecklistTasksAdded>>§direct_message_price_changed: Option<Box<DirectMessagePriceChanged>>§forum_topic_created: Option<Box<ForumTopicCreated>>§forum_topic_edited: Option<Box<ForumTopicEdited>>§forum_topic_closed: Option<Box<ForumTopicClosed>>§forum_topic_reopened: Option<Box<ForumTopicReopened>>§giveaway_created: Option<GiveawayCreated>§giveaway: Option<Giveaway>§giveaway_winners: Option<GiveawayWinners>§giveaway_completed: Option<GiveawayCompleted>§managed_bot_created: Option<Box<ManagedBotCreated>>§paid_message_price_changed: Option<PaidMessagePriceChanged>§suggested_post_approved: Option<Box<SuggestedPostApproved>>§suggested_post_approval_failed: Option<Box<SuggestedPostApprovalFailed>>§suggested_post_declined: Option<Box<SuggestedPostDeclined>>§poll_option_added: Option<Box<PollOptionAdded>>§poll_option_deleted: Option<Box<PollOptionDeleted>>§suggested_post_paid: Option<Box<SuggestedPostPaid>>§suggested_post_refunded: Option<Box<SuggestedPostRefunded>>§video_chat_scheduled: Option<Box<VideoChatScheduled>>§video_chat_started: Option<Box<VideoChatStarted>>§video_chat_ended: Option<Box<VideoChatEnded>>§video_chat_participants_invited: Option<Box<VideoChatParticipantsInvited>>§web_app_data: Option<Box<WebAppData>>§reply_markup: Option<Box<InlineKeyboardMarkup>>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more