Enum telegram_bot_raw_ars::types::message::ForwardFrom
source · pub enum ForwardFrom {
User {
user: User,
},
Channel {
channel: Channel,
message_id: Integer,
},
ChannelHiddenUser {
sender_name: String,
},
HiddenGroupAdmin {
chat_id: SupergroupId,
title: String,
},
}
Expand description
Information about the source of the original message.
Variants§
User
Sender of the original message.
Channel
Fields
For messages forwarded from a channel, information about the original channel.
ChannelHiddenUser
HiddenGroupAdmin
For messages forwarded from a hidden admin
Trait Implementations§
source§impl Clone for ForwardFrom
impl Clone for ForwardFrom
source§fn clone(&self) -> ForwardFrom
fn clone(&self) -> ForwardFrom
Returns a copy 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 ForwardFrom
impl Debug for ForwardFrom
source§impl PartialEq<ForwardFrom> for ForwardFrom
impl PartialEq<ForwardFrom> for ForwardFrom
source§fn eq(&self, other: &ForwardFrom) -> bool
fn eq(&self, other: &ForwardFrom) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ForwardFrom> for ForwardFrom
impl PartialOrd<ForwardFrom> for ForwardFrom
source§fn partial_cmp(&self, other: &ForwardFrom) -> Option<Ordering>
fn partial_cmp(&self, other: &ForwardFrom) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more