pub struct OutboundMessage {
pub chat: String,
pub message_id: i64,
pub text: String,
pub buttons: Vec<Vec<WireButton>>,
pub reply_to: Option<i64>,
pub thread_id: Option<i64>,
pub extras: Option<Value>,
}Expand description
A text message the bot sent.
Fields§
§chat: StringChat/channel id.
message_id: i64Assigned message id.
text: StringMessage text.
Inline keyboard rows.
reply_to: Option<i64>Message this one replies to.
thread_id: Option<i64>Forum topic the message was sent to.
extras: Option<Value>Platform extras that have no CLI-native shape (embeds, select menus).
Trait Implementations§
Source§impl Clone for OutboundMessage
impl Clone for OutboundMessage
Source§fn clone(&self) -> OutboundMessage
fn clone(&self) -> OutboundMessage
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 OutboundMessage
impl Debug for OutboundMessage
Source§impl<'de> Deserialize<'de> for OutboundMessage
impl<'de> Deserialize<'de> for OutboundMessage
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 OutboundMessage
impl PartialEq for OutboundMessage
Source§impl Serialize for OutboundMessage
impl Serialize for OutboundMessage
impl StructuralPartialEq for OutboundMessage
Auto Trait Implementations§
impl Freeze for OutboundMessage
impl RefUnwindSafe for OutboundMessage
impl Send for OutboundMessage
impl Sync for OutboundMessage
impl Unpin for OutboundMessage
impl UnsafeUnpin for OutboundMessage
impl UnwindSafe for OutboundMessage
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