Enum tg_flows::ForwardedFrom
source · pub enum ForwardedFrom {
User(User),
Chat(Chat),
SenderName(String),
}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<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::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 ==.