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: Option<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: Option<ExternalReplyInfoKind>Media (or other content) of the original message. None if the
original message has no media, e.g. it is a plain text message.
Trait 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 (const: unstable) · 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 Forget for ExternalReplyInfo
impl Freeze for ExternalReplyInfowhere
NonZero<i32>: Freeze,
Utc: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
PhantomData<(Indexed, Indexed)>: Freeze,
PhantomData<PaidMedia>: Freeze,
PhantomData<PhotoSize>: Freeze,
PhantomData<MessageEntity>: Freeze,
PhantomData<PollOption>: Freeze,
PhantomData<String>: Freeze,
PhantomData<VideoQuality>: Freeze,
PhantomData<ChecklistTask>: Freeze,
PhantomData<Chat>: Freeze,
PhantomData<CountryCode>: Freeze,
PhantomData<User>: Freeze,
impl Move for ExternalReplyInfo
impl RefUnwindSafe for ExternalReplyInfo
impl Send for ExternalReplyInfo
impl Sync for ExternalReplyInfo
impl Unpin for ExternalReplyInfo
impl UnsafeUnpin for ExternalReplyInfowhere
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<(Indexed, Indexed)>: UnsafeUnpin,
PhantomData<PaidMedia>: UnsafeUnpin,
PhantomData<PhotoSize>: UnsafeUnpin,
PhantomData<MessageEntity>: UnsafeUnpin,
PhantomData<PollOption>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<VideoQuality>: UnsafeUnpin,
PhantomData<ChecklistTask>: UnsafeUnpin,
PhantomData<Chat>: UnsafeUnpin,
PhantomData<CountryCode>: UnsafeUnpin,
PhantomData<User>: UnsafeUnpin,
impl UnwindSafe for ExternalReplyInfowhere
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
RawVecInner: UnwindSafe,
&'static str: UnwindSafe,
BoxRaw<PaidMediaVideo>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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