Enum teloxide::types::ForwardedFrom
source · Expand description
The entity that sent the original message that later was forwarded.
Variants§
User(User)
The message was sent by a user.
Chat(Chat)
The message was sent by an anonymous user on behalf of a group or channel.
SenderName(String)
The message was sent by a user who disallow adding a link to their account in forwarded messages.
Trait Implementations§
source§impl Clone for ForwardedFrom
impl Clone for ForwardedFrom
source§fn clone(&self) -> ForwardedFrom
fn clone(&self) -> ForwardedFrom
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 ForwardedFrom
impl Debug for ForwardedFrom
source§impl<'de> Deserialize<'de> for ForwardedFrom
impl<'de> Deserialize<'de> for ForwardedFrom
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ForwardedFrom, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ForwardedFrom, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ForwardedFrom> for ForwardedFrom
impl PartialEq<ForwardedFrom> for ForwardedFrom
source§fn eq(&self, other: &ForwardedFrom) -> bool
fn eq(&self, other: &ForwardedFrom) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ForwardedFrom
impl Serialize for ForwardedFrom
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