pub struct InboundMessage {
pub chat: String,
pub user: WireUser,
pub message_id: Option<i64>,
pub text: Option<String>,
pub caption: Option<String>,
pub thread_id: Option<i64>,
pub reply_to: Option<WireReplyRef>,
pub files: Vec<WireFile>,
pub sticker: Option<WireSticker>,
pub ambient: bool,
}Expand description
A plain or media message.
Fields§
§chat: StringChat/channel id.
user: WireUserAuthor.
message_id: Option<i64>Message id; assigned by the hub when omitted.
text: Option<String>Message text.
caption: Option<String>Media caption, when the message carries files.
thread_id: Option<i64>Forum topic the message belongs to.
reply_to: Option<WireReplyRef>The message this one replies to.
files: Vec<WireFile>Attached files.
sticker: Option<WireSticker>Attached sticker.
ambient: boolMarks the message as room chatter not aimed at the bot — the way a
group message without a reply/mention looks. Consumers may use it to
flag the event ambient rather than direct.
Trait Implementations§
Source§impl Clone for InboundMessage
impl Clone for InboundMessage
Source§fn clone(&self) -> InboundMessage
fn clone(&self) -> InboundMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InboundMessage
impl Debug for InboundMessage
Source§impl<'de> Deserialize<'de> for InboundMessage
impl<'de> Deserialize<'de> for InboundMessage
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 InboundMessage
impl PartialEq for InboundMessage
Source§impl Serialize for InboundMessage
impl Serialize for InboundMessage
impl StructuralPartialEq for InboundMessage
Auto Trait Implementations§
impl Freeze for InboundMessage
impl RefUnwindSafe for InboundMessage
impl Send for InboundMessage
impl Sync for InboundMessage
impl Unpin for InboundMessage
impl UnsafeUnpin for InboundMessage
impl UnwindSafe for InboundMessage
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