pub enum ForwardFrom {
User {
user: User,
},
Channel {
channel: Channel,
message_id: i64,
},
ChannelHiddenUser {
sender_name: String,
},
}
Expand description
Information about the source of the original message.
Variants§
User
Sender of the original message.
Channel
For messages forwarded from a channel, information about the original channel.
Fields
ChannelHiddenUser
Trait Implementations§
Source§impl Clone for ForwardFrom
impl Clone for ForwardFrom
Source§fn clone(&self) -> ForwardFrom
fn clone(&self) -> ForwardFrom
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 ForwardFrom
impl Debug for ForwardFrom
Source§impl PartialEq for ForwardFrom
impl PartialEq for ForwardFrom
Source§impl PartialOrd for ForwardFrom
impl PartialOrd for ForwardFrom
Source§impl ToChatRef for ForwardFrom
impl ToChatRef for ForwardFrom
fn to_chat_ref(&self) -> ChatRef
impl StructuralPartialEq for ForwardFrom
Auto Trait Implementations§
impl Freeze for ForwardFrom
impl RefUnwindSafe for ForwardFrom
impl Send for ForwardFrom
impl Sync for ForwardFrom
impl Unpin for ForwardFrom
impl UnwindSafe for ForwardFrom
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