Struct telegram_api_rs::objects::Message[][src]

pub struct Message {
Show fields pub message_id: i32, pub from: Option<User>, pub sender_chat: Option<Box<Chat>>, pub date: i32, pub chat: Box<Chat>, pub forward_from: Option<User>, pub forward_from_chat: Option<Box<Chat>>, pub forward_from_message_id: Option<i32>, pub forward_signature: Option<String>, pub forward_sender_name: Option<String>, pub forward_date: Option<i32>, pub reply_to_message: Option<Box<Message>>, pub via_bot: Option<User>, pub edit_date: Option<i32>, 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 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<i64>, pub migrate_from_chat_id: Option<i64>, pub pinned_message: Option<Box<Message>>, pub connected_website: Option<String>, pub proximity_alert_triggered: Option<ProximityAlertTriggered>, pub voice_chat_scheduled: Option<VoiceChatScheduled>, pub voice_chat_started: Option<VoiceChatStarted>, pub voice_chat_ended: Option<VoiceChatEnded>, pub voice_chat_participants_invited: Option<VoiceChatParticipantsInvited>, pub reply_markup: Option<InlineKeyboardMarkup>,
}

Fields

message_id: i32from: Option<User>sender_chat: Option<Box<Chat>>date: i32chat: Box<Chat>forward_from: Option<User>forward_from_chat: Option<Box<Chat>>forward_from_message_id: Option<i32>forward_signature: Option<String>forward_sender_name: Option<String>forward_date: Option<i32>reply_to_message: Option<Box<Message>>via_bot: Option<User>edit_date: Option<i32>media_group_id: Option<String>author_signature: 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>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<i64>migrate_from_chat_id: Option<i64>pinned_message: Option<Box<Message>>connected_website: Option<String>proximity_alert_triggered: Option<ProximityAlertTriggered>voice_chat_scheduled: Option<VoiceChatScheduled>voice_chat_started: Option<VoiceChatStarted>voice_chat_ended: Option<VoiceChatEnded>voice_chat_participants_invited: Option<VoiceChatParticipantsInvited>reply_markup: Option<InlineKeyboardMarkup>

Implementations

impl Message[src]

pub fn from_json(data: JsonValue) -> Message[src]

pub fn to_json(&self) -> JsonValue[src]

pub fn empty() -> Message[src]

Trait Implementations

impl Clone for Message[src]

fn clone(&self) -> Self[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Display for Message[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 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<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.