[−][src]Struct telexide::prelude::Message
This object represents a message.
Fields
message_id: i64
Unique message identifier inside this chat
from: Option<User>
Sender, empty for messages sent to channels
date: DateTime<Utc>
Date the message was sent
chat: Chat
Conversation the message belongs to
forward_data: Option<ForwardData>
Data about what message it was forwarded from
reply_to_message: Option<Box<Message>>
For replies, the original message. Note that the Message object in this field will not contain further reply_to_message fields even if it itself is a reply.
edit_date: Option<DateTime<Utc>>
Date the message was last edited in Unix time
Signature of the post author for messages in channels
content: MessageContent
The content of the message
connected_website: Option<String>
The domain name of the website on which the user has logged in.
passport_data: Option<PassportData>
Telegram Passport data
reply_markup: Option<InlineKeyboardMarkup>
Inline keyboard attached to the message. login_url
buttons are
represented as ordinary url
buttons.
Methods
impl Message
[src]
Trait Implementations
impl Clone for Message
[src]
impl Debug for Message
[src]
impl<'de> Deserialize<'de> for Message
[src]
fn deserialize<D>(deserializer: D) -> Result<Message, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl From<Message> for RawMessage
[src]
fn from(message: Message) -> RawMessage
[src]
impl From<RawMessage> for Message
[src]
fn from(raw: RawMessage) -> Message
[src]
impl PartialEq<Message> for Message
[src]
impl Serialize for Message
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CloneAny for T where
T: Clone + Any,
[src]
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
[src]
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
[src]
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
[src]
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Send + Sync> where
T: Send + Sync,
[src]
T: Send + Sync,
impl<T> DebugAny for T where
T: Any + Debug,
[src]
T: Any + Debug,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnsafeAny for T where
T: Any,
T: Any,