[−][src]Struct telegram_bot_raw::types::message::ChannelPost
This object represents a channel message.
Fields
id: MessageId
Unique message identifier inside this chat.
date: Integer
Date the message was sent in Unix time.
chat: Channel
Conversation the message belongs to.
forward: Option<Forward>
Information about the original message.
reply_to_message: Option<Box<MessageOrChannelPost>>
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<Integer>
Date the message was last edited in Unix time.
kind: MessageKind
Kind of the message.
Trait Implementations
impl Clone for ChannelPost
[src]
fn clone(&self) -> ChannelPost
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ChannelPost
[src]
impl<'de> Deserialize<'de> for ChannelPost
[src]
fn deserialize<D>(deserializer: D) -> Result<ChannelPost, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl PartialEq<ChannelPost> for ChannelPost
[src]
fn eq(&self, other: &ChannelPost) -> bool
[src]
fn ne(&self, other: &ChannelPost) -> bool
[src]
impl PartialOrd<ChannelPost> for ChannelPost
[src]
fn partial_cmp(&self, other: &ChannelPost) -> Option<Ordering>
[src]
fn lt(&self, other: &ChannelPost) -> bool
[src]
fn le(&self, other: &ChannelPost) -> bool
[src]
fn gt(&self, other: &ChannelPost) -> bool
[src]
fn ge(&self, other: &ChannelPost) -> bool
[src]
impl StructuralPartialEq for ChannelPost
[src]
impl ToMessageId for ChannelPost
[src]
fn to_message_id(&self) -> MessageId
[src]
impl ToSourceChat for ChannelPost
[src]
fn to_source_chat(&self) -> ChatId
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChannelPost
[src]
impl Send for ChannelPost
[src]
impl Sync for ChannelPost
[src]
impl Unpin for ChannelPost
[src]
impl UnwindSafe for ChannelPost
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<M> CanDeleteMessage for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn delete(&Self) -> DeleteMessage
[src]
impl<M> CanEditMessageCaption for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn edit_caption<'s, T>(&Self, T) -> EditMessageCaption<'s> where
T: Into<Cow<'s, str>>,
[src]
T: Into<Cow<'s, str>>,
impl<M> CanEditMessageLiveLocation for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn edit_live_location(&Self, f32, f32) -> EditMessageLiveLocation
[src]
impl<M> CanEditMessageReplyMarkup for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn edit_reply_markup<R>(&Self, Option<R>) -> EditMessageReplyMarkup where
R: Into<ReplyMarkup>,
[src]
R: Into<ReplyMarkup>,
impl<M> CanEditMessageText for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
impl<M> CanForwardMessage for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn forward<T>(&Self, T) -> ForwardMessage where
T: ToChatRef,
[src]
T: ToChatRef,
impl<M> CanPinMessage for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn pin(&Self) -> PinChatMessage
[src]
impl<M> CanReplySendAudio for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn audio_reply<'c, 'p, 't, T>(&Self, T) -> SendAudio<'c, 'p, 't> where
T: Into<InputFile>,
[src]
T: Into<InputFile>,
impl<M> CanReplySendContact for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn contact_reply<'p, 'f, 'l, P, F>(&Self, P, F) -> SendContact<'p, 'f, 'l> where
F: 'f + Into<Cow<'f, str>>,
P: 'p + Into<Cow<'p, str>>,
[src]
F: 'f + Into<Cow<'f, str>>,
P: 'p + Into<Cow<'p, str>>,
impl<M> CanReplySendDocument for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn document_reply<'c, T>(&Self, T) -> SendDocument<'c> where
T: Into<InputFile>,
[src]
T: Into<InputFile>,
impl<M> CanReplySendLocation for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn location_reply(&Self, f32, f32) -> SendLocation
[src]
impl<M> CanReplySendMessage for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn text_reply<'s, T>(&Self, T) -> SendMessage<'s> where
T: Into<Cow<'s, str>>,
[src]
T: Into<Cow<'s, str>>,
impl<M> CanReplySendPhoto for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
impl<M> CanReplySendPoll for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn poll_reply<'q, 'o, 'e, Q, O>(
&Self,
Q,
Vec<O, Global>
) -> SendPoll<'q, 'o, 'e> where
Q: Into<Cow<'q, str>>,
O: Into<Cow<'o, str>>,
[src]
&Self,
Q,
Vec<O, Global>
) -> SendPoll<'q, 'o, 'e> where
Q: Into<Cow<'q, str>>,
O: Into<Cow<'o, str>>,
impl<M> CanReplySendVenue for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn venue_reply<'t, 'a, 'f, T, A>(
&Self,
f32,
f32,
T,
A
) -> SendVenue<'t, 'a, 'f> where
T: Into<Cow<'t, str>>,
A: Into<Cow<'a, str>>,
[src]
&Self,
f32,
f32,
T,
A
) -> SendVenue<'t, 'a, 'f> where
T: Into<Cow<'t, str>>,
A: Into<Cow<'a, str>>,
impl<M> CanReplySendVideo for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
impl<M> CanStopMessageLiveLocation for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
pub fn stop_live_location(&Self) -> StopMessageLiveLocation
[src]
impl<M> CanStopPoll for M where
M: ToMessageId + ToSourceChat,
[src]
M: ToMessageId + ToSourceChat,
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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,