pub struct ExternalReplyInfo {
pub origin: MessageOrigin,
pub chat: Option<Chat>,
pub message_id: Option<MessageId>,
pub link_preview_options: Option<LinkPreviewOptions>,
pub has_media_spoiler: bool,
pub kind: ExternalReplyInfoKind,
}Expand description
This object contains information about a message that is being replied to, which may come from another chat or forum topic.
Fields§
§origin: MessageOriginOrigin of the message replied to by the given message.
chat: Option<Chat>Chat the original message belongs to. Available only if the chat is a supergroup or a channel.
message_id: Option<MessageId>Unique message identifier inside the original chat. Available only if the original chat is a supergroup or a channel.
link_preview_options: Option<LinkPreviewOptions>Options used for link preview generation for the original message, if it is a text message.
has_media_spoiler: booltrue, if the message media is covered by a spoiler animation.
kind: ExternalReplyInfoKindTrait Implementations§
Source§impl Clone for ExternalReplyInfo
impl Clone for ExternalReplyInfo
Source§fn clone(&self) -> ExternalReplyInfo
fn clone(&self) -> ExternalReplyInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExternalReplyInfo
impl Debug for ExternalReplyInfo
Source§impl<'de> Deserialize<'de> for ExternalReplyInfo
impl<'de> Deserialize<'de> for ExternalReplyInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalReplyInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ExternalReplyInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExternalReplyInfo
impl PartialEq for ExternalReplyInfo
Source§impl Serialize for ExternalReplyInfo
impl Serialize for ExternalReplyInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ExternalReplyInfo
Auto Trait Implementations§
impl Freeze for ExternalReplyInfo
impl RefUnwindSafe for ExternalReplyInfo
impl Send for ExternalReplyInfo
impl Sync for ExternalReplyInfo
impl Unpin for ExternalReplyInfo
impl UnwindSafe for ExternalReplyInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more