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 duplicate 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 for ForwardedFrom
impl PartialEq for ForwardedFrom
Source§impl Serialize for ForwardedFrom
impl Serialize for ForwardedFrom
impl StructuralPartialEq for ForwardedFrom
Auto Trait Implementations§
impl Freeze for ForwardedFrom
impl RefUnwindSafe for ForwardedFrom
impl Send for ForwardedFrom
impl Sync for ForwardedFrom
impl Unpin for ForwardedFrom
impl UnwindSafe for ForwardedFrom
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
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> 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