pub struct InboundButton {
pub chat: String,
pub user: WireUser,
pub data: String,
pub message_id: Option<i64>,
pub message_text: Option<String>,
pub thread_id: Option<i64>,
}Expand description
An inline-button press.
Fields§
§chat: StringChat/channel id.
user: WireUserPressing user.
data: StringThe button’s callback data.
message_id: Option<i64>Message the button was attached to.
message_text: Option<String>Text of the message the button was attached to.
thread_id: Option<i64>Forum topic of the button’s message.
Trait Implementations§
Source§impl Clone for InboundButton
impl Clone for InboundButton
Source§fn clone(&self) -> InboundButton
fn clone(&self) -> InboundButton
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 InboundButton
impl Debug for InboundButton
Source§impl<'de> Deserialize<'de> for InboundButton
impl<'de> Deserialize<'de> for InboundButton
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 InboundButton
impl PartialEq for InboundButton
Source§impl Serialize for InboundButton
impl Serialize for InboundButton
impl StructuralPartialEq for InboundButton
Auto Trait Implementations§
impl Freeze for InboundButton
impl RefUnwindSafe for InboundButton
impl Send for InboundButton
impl Sync for InboundButton
impl Unpin for InboundButton
impl UnsafeUnpin for InboundButton
impl UnwindSafe for InboundButton
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