Struct frankenstein::objects::Message [−][src]
pub struct Message {}Show fields
pub message_id: isize, pub from: Option<User>, pub sender_chat: Option<Chat>, pub date: isize, pub chat: Chat, pub forward_from: Option<User>, pub forward_from_chat: Option<Chat>, pub forward_from_message_id: Option<isize>, pub forward_signature: Option<String>, pub forward_sender_name: Option<String>, pub forward_date: Option<isize>, pub reply_to_message: Option<Box<Message>>, pub via_bot: Option<User>, pub edit_date: Option<isize>, pub media_group_id: Option<String>, pub author_signature: Option<String>, pub text: Option<String>, pub entities: Option<Vec<MessageEntity>>, pub animation: Option<Animation>, pub audio: Option<Audio>, pub document: Option<Document>, pub photo: Option<Vec<PhotoSize>>, pub sticker: Option<Sticker>, pub video: Option<Video>, pub video_note: Option<VideoNote>, pub voice: Option<Voice>, pub caption: Option<String>, pub caption_entities: Option<Vec<MessageEntity>>, pub contact: Option<Contact>, pub dice: Option<Dice>, pub game: Option<Game>, pub poll: Option<Poll>, pub venue: Option<Venue>, pub location: Option<Location>, pub new_chat_members: Option<Vec<User>>, pub left_chat_member: Option<User>, 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<MessageAutoDeleteTimerChanged>, pub migrate_to_chat_id: Option<isize>, pub migrate_from_chat_id: Option<isize>, pub pinned_message: Option<Box<Message>>, pub invoice: Option<Invoice>, pub successful_payment: Option<SuccessfulPayment>, pub connected_website: Option<String>, pub passport_data: Option<PassportData>, pub proximity_alert_triggered: Option<ProximityAlertTriggered>, pub voice_chat_started: Option<VoiceChatStarted>, pub voice_chat_ended: Option<VoiceChatEnded>, pub voice_chat_scheduled: Option<VoiceChatScheduled>, pub voice_chat_participants_invited: Option<VoiceChatParticipantsInvited>, pub reply_markup: Option<InlineKeyboardMarkup>,
Fields
message_id: isize
from: Option<User>
sender_chat: Option<Chat>
date: isize
chat: Chat
forward_from: Option<User>
forward_from_chat: Option<Chat>
forward_from_message_id: Option<isize>
forward_signature: Option<String>
forward_sender_name: Option<String>
forward_date: Option<isize>
reply_to_message: Option<Box<Message>>
via_bot: Option<User>
edit_date: Option<isize>
media_group_id: Option<String>
text: Option<String>
entities: Option<Vec<MessageEntity>>
animation: Option<Animation>
audio: Option<Audio>
document: Option<Document>
photo: Option<Vec<PhotoSize>>
sticker: Option<Sticker>
video: Option<Video>
video_note: Option<VideoNote>
voice: Option<Voice>
caption: Option<String>
caption_entities: Option<Vec<MessageEntity>>
contact: Option<Contact>
dice: Option<Dice>
game: Option<Game>
poll: Option<Poll>
venue: Option<Venue>
location: Option<Location>
new_chat_members: Option<Vec<User>>
left_chat_member: Option<User>
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<MessageAutoDeleteTimerChanged>
migrate_to_chat_id: Option<isize>
migrate_from_chat_id: Option<isize>
pinned_message: Option<Box<Message>>
invoice: Option<Invoice>
successful_payment: Option<SuccessfulPayment>
connected_website: Option<String>
passport_data: Option<PassportData>
proximity_alert_triggered: Option<ProximityAlertTriggered>
voice_chat_started: Option<VoiceChatStarted>
voice_chat_ended: Option<VoiceChatEnded>
voice_chat_scheduled: Option<VoiceChatScheduled>
voice_chat_participants_invited: Option<VoiceChatParticipantsInvited>
reply_markup: Option<InlineKeyboardMarkup>
Implementations
impl Message
[src]
impl Message
[src]pub fn new(message_id: isize, date: isize, chat: Chat) -> Self
[src]
pub fn set_message_id(&mut self, message_id: isize)
[src]
pub fn set_date(&mut self, date: isize)
[src]
pub fn set_chat(&mut self, chat: Chat)
[src]
pub fn set_from(&mut self, from: Option<User>)
[src]
pub fn set_sender_chat(&mut self, sender_chat: Option<Chat>)
[src]
pub fn set_forward_from(&mut self, forward_from: Option<User>)
[src]
pub fn set_forward_from_chat(&mut self, forward_from_chat: Option<Chat>)
[src]
pub fn set_forward_from_message_id(
&mut self,
forward_from_message_id: Option<isize>
)
[src]
&mut self,
forward_from_message_id: Option<isize>
)
pub fn set_forward_signature(&mut self, forward_signature: Option<String>)
[src]
pub fn set_forward_sender_name(&mut self, forward_sender_name: Option<String>)
[src]
pub fn set_forward_date(&mut self, forward_date: Option<isize>)
[src]
pub fn set_reply_to_message(&mut self, reply_to_message: Option<Box<Message>>)
[src]
pub fn set_via_bot(&mut self, via_bot: Option<User>)
[src]
pub fn set_edit_date(&mut self, edit_date: Option<isize>)
[src]
pub fn set_media_group_id(&mut self, media_group_id: Option<String>)
[src]
pub fn set_author_signature(&mut self, author_signature: Option<String>)
[src]
pub fn set_text(&mut self, text: Option<String>)
[src]
pub fn set_entities(&mut self, entities: Option<Vec<MessageEntity>>)
[src]
pub fn set_animation(&mut self, animation: Option<Animation>)
[src]
pub fn set_audio(&mut self, audio: Option<Audio>)
[src]
pub fn set_document(&mut self, document: Option<Document>)
[src]
pub fn set_photo(&mut self, photo: Option<Vec<PhotoSize>>)
[src]
pub fn set_sticker(&mut self, sticker: Option<Sticker>)
[src]
pub fn set_video(&mut self, video: Option<Video>)
[src]
pub fn set_video_note(&mut self, video_note: Option<VideoNote>)
[src]
pub fn set_voice(&mut self, voice: Option<Voice>)
[src]
pub fn set_caption(&mut self, caption: Option<String>)
[src]
pub fn set_caption_entities(
&mut self,
caption_entities: Option<Vec<MessageEntity>>
)
[src]
&mut self,
caption_entities: Option<Vec<MessageEntity>>
)
pub fn set_contact(&mut self, contact: Option<Contact>)
[src]
pub fn set_dice(&mut self, dice: Option<Dice>)
[src]
pub fn set_game(&mut self, game: Option<Game>)
[src]
pub fn set_poll(&mut self, poll: Option<Poll>)
[src]
pub fn set_venue(&mut self, venue: Option<Venue>)
[src]
pub fn set_location(&mut self, location: Option<Location>)
[src]
pub fn set_new_chat_members(&mut self, new_chat_members: Option<Vec<User>>)
[src]
pub fn set_left_chat_member(&mut self, left_chat_member: Option<User>)
[src]
pub fn set_new_chat_title(&mut self, new_chat_title: Option<String>)
[src]
pub fn set_new_chat_photo(&mut self, new_chat_photo: Option<Vec<PhotoSize>>)
[src]
pub fn set_delete_chat_photo(&mut self, delete_chat_photo: Option<bool>)
[src]
pub fn set_group_chat_created(&mut self, group_chat_created: Option<bool>)
[src]
pub fn set_supergroup_chat_created(
&mut self,
supergroup_chat_created: Option<bool>
)
[src]
&mut self,
supergroup_chat_created: Option<bool>
)
pub fn set_channel_chat_created(&mut self, channel_chat_created: Option<bool>)
[src]
pub fn set_message_auto_delete_timer_changed(
&mut self,
message_auto_delete_timer_changed: Option<MessageAutoDeleteTimerChanged>
)
[src]
&mut self,
message_auto_delete_timer_changed: Option<MessageAutoDeleteTimerChanged>
)
pub fn set_migrate_to_chat_id(&mut self, migrate_to_chat_id: Option<isize>)
[src]
pub fn set_migrate_from_chat_id(&mut self, migrate_from_chat_id: Option<isize>)
[src]
pub fn set_pinned_message(&mut self, pinned_message: Option<Box<Message>>)
[src]
pub fn set_invoice(&mut self, invoice: Option<Invoice>)
[src]
pub fn set_successful_payment(
&mut self,
successful_payment: Option<SuccessfulPayment>
)
[src]
&mut self,
successful_payment: Option<SuccessfulPayment>
)
pub fn set_connected_website(&mut self, connected_website: Option<String>)
[src]
pub fn set_passport_data(&mut self, passport_data: Option<PassportData>)
[src]
pub fn set_proximity_alert_triggered(
&mut self,
proximity_alert_triggered: Option<ProximityAlertTriggered>
)
[src]
&mut self,
proximity_alert_triggered: Option<ProximityAlertTriggered>
)
pub fn set_voice_chat_started(
&mut self,
voice_chat_started: Option<VoiceChatStarted>
)
[src]
&mut self,
voice_chat_started: Option<VoiceChatStarted>
)
pub fn set_voice_chat_ended(&mut self, voice_chat_ended: Option<VoiceChatEnded>)
[src]
pub fn set_voice_chat_participants_invited(
&mut self,
voice_chat_participants_invited: Option<VoiceChatParticipantsInvited>
)
[src]
&mut self,
voice_chat_participants_invited: Option<VoiceChatParticipantsInvited>
)
pub fn set_voice_chat_scheduled(
&mut self,
voice_chat_scheduled: Option<VoiceChatScheduled>
)
[src]
&mut self,
voice_chat_scheduled: Option<VoiceChatScheduled>
)
pub fn set_reply_markup(&mut self, reply_markup: Option<InlineKeyboardMarkup>)
[src]
pub fn voice_chat_scheduled(&self) -> Option<VoiceChatScheduled>
[src]
pub fn message_id(&self) -> isize
[src]
pub fn date(&self) -> isize
[src]
pub fn chat(&self) -> Chat
[src]
pub fn from(&self) -> Option<User>
[src]
pub fn sender_chat(&self) -> Option<Chat>
[src]
pub fn forward_from(&self) -> Option<User>
[src]
pub fn forward_from_chat(&self) -> Option<Chat>
[src]
pub fn forward_from_message_id(&self) -> Option<isize>
[src]
pub fn forward_signature(&self) -> Option<String>
[src]
pub fn forward_sender_name(&self) -> Option<String>
[src]
pub fn forward_date(&self) -> Option<isize>
[src]
pub fn reply_to_message(&self) -> Option<Box<Message>>
[src]
pub fn via_bot(&self) -> Option<User>
[src]
pub fn edit_date(&self) -> Option<isize>
[src]
pub fn media_group_id(&self) -> Option<String>
[src]
pub fn author_signature(&self) -> Option<String>
[src]
pub fn text(&self) -> Option<String>
[src]
pub fn entities(&self) -> Option<Vec<MessageEntity>>
[src]
pub fn animation(&self) -> Option<Animation>
[src]
pub fn audio(&self) -> Option<Audio>
[src]
pub fn document(&self) -> Option<Document>
[src]
pub fn photo(&self) -> Option<Vec<PhotoSize>>
[src]
pub fn sticker(&self) -> Option<Sticker>
[src]
pub fn video(&self) -> Option<Video>
[src]
pub fn video_note(&self) -> Option<VideoNote>
[src]
pub fn voice(&self) -> Option<Voice>
[src]
pub fn caption(&self) -> Option<String>
[src]
pub fn caption_entities(&self) -> Option<Vec<MessageEntity>>
[src]
pub fn contact(&self) -> Option<Contact>
[src]
pub fn dice(&self) -> Option<Dice>
[src]
pub fn game(&self) -> Option<Game>
[src]
pub fn poll(&self) -> Option<Poll>
[src]
pub fn venue(&self) -> Option<Venue>
[src]
pub fn location(&self) -> Option<Location>
[src]
pub fn new_chat_members(&self) -> Option<Vec<User>>
[src]
pub fn left_chat_member(&self) -> Option<User>
[src]
pub fn new_chat_title(&self) -> Option<String>
[src]
pub fn new_chat_photo(&self) -> Option<Vec<PhotoSize>>
[src]
pub fn delete_chat_photo(&self) -> Option<bool>
[src]
pub fn group_chat_created(&self) -> Option<bool>
[src]
pub fn supergroup_chat_created(&self) -> Option<bool>
[src]
pub fn channel_chat_created(&self) -> Option<bool>
[src]
pub fn message_auto_delete_timer_changed(
&self
) -> Option<MessageAutoDeleteTimerChanged>
[src]
&self
) -> Option<MessageAutoDeleteTimerChanged>
pub fn migrate_to_chat_id(&self) -> Option<isize>
[src]
pub fn migrate_from_chat_id(&self) -> Option<isize>
[src]
pub fn pinned_message(&self) -> Option<Box<Message>>
[src]
pub fn invoice(&self) -> Option<Invoice>
[src]
pub fn successful_payment(&self) -> Option<SuccessfulPayment>
[src]
pub fn connected_website(&self) -> Option<String>
[src]
pub fn passport_data(&self) -> Option<PassportData>
[src]
pub fn proximity_alert_triggered(&self) -> Option<ProximityAlertTriggered>
[src]
pub fn voice_chat_started(&self) -> Option<VoiceChatStarted>
[src]
pub fn voice_chat_ended(&self) -> Option<VoiceChatEnded>
[src]
pub fn voice_chat_participants_invited(
&self
) -> Option<VoiceChatParticipantsInvited>
[src]
&self
) -> Option<VoiceChatParticipantsInvited>
pub fn reply_markup(&self) -> Option<InlineKeyboardMarkup>
[src]
Trait Implementations
impl<'de> Deserialize<'de> for Message
[src]
impl<'de> Deserialize<'de> for Message
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Message
[src]
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> CloneAny for T where
T: Any + Clone,
impl<T> CloneAny for T where
T: Any + Clone,
pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
&self
) -> Box<dyn CloneAny + 'static + Sync + Send, Global> where
T: Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> UnsafeAny for T where
T: Any,
T: Any,