pub struct ReplyToMessage(pub Message);Expand description
A message that another message replies to.
This is the dependency inserted by
MessageFilterExt::filter_reply_to_message. It is a newtype so that it
does not override the original Message in the dependency map, so
handlers can accept both.
Tuple Fields§
§0: MessageTrait Implementations§
Source§impl Clone for ReplyToMessage
impl Clone for ReplyToMessage
Auto Trait Implementations§
impl Forget for ReplyToMessage
impl Freeze for ReplyToMessagewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
*const Message is !null: Freeze,
PhantomData<Message>: 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,
PhantomData<RichText>: Freeze,
*const MediaPoll is !null: Freeze,
PhantomData<MediaPoll>: Freeze,
PhantomData<RichBlock>: Freeze,
PhantomData<Vec<InlineKeyboardButton>>: Freeze,
*const MaybeInaccessibleMessage is !null: Freeze,
PhantomData<MaybeInaccessibleMessage>: Freeze,
PhantomData<SharedUser>: Freeze,
PhantomData<EncryptedPassportElement>: Freeze,
PhantomData<Rgb>: Freeze,
PhantomData<ChecklistTaskId>: Freeze,
impl Move for ReplyToMessage
impl RefUnwindSafe for ReplyToMessage
impl Send for ReplyToMessage
impl Sync for ReplyToMessage
impl Unpin for ReplyToMessage
impl UnsafeUnpin for ReplyToMessagewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const Message is !null: UnsafeUnpin,
PhantomData<Message>: 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,
PhantomData<RichText>: UnsafeUnpin,
*const MediaPoll is !null: UnsafeUnpin,
PhantomData<MediaPoll>: UnsafeUnpin,
PhantomData<RichBlock>: UnsafeUnpin,
PhantomData<Vec<InlineKeyboardButton>>: UnsafeUnpin,
*const MaybeInaccessibleMessage is !null: UnsafeUnpin,
PhantomData<MaybeInaccessibleMessage>: UnsafeUnpin,
PhantomData<SharedUser>: UnsafeUnpin,
PhantomData<EncryptedPassportElement>: UnsafeUnpin,
PhantomData<Rgb>: UnsafeUnpin,
PhantomData<ChecklistTaskId>: UnsafeUnpin,
impl UnwindSafe for ReplyToMessagewhere
RawVecInner: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
BoxRaw<Message>: UnwindSafe,
&'static str: UnwindSafe,
BoxRaw<PaidMediaVideo>: UnwindSafe,
BoxRaw<RichTextKind>: UnwindSafe,
BoxRaw<MediaPoll>: UnwindSafe,
BoxRaw<MaybeInaccessibleMessage>: 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,
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