pub struct InboundCommand {
pub chat: String,
pub user: WireUser,
pub name: String,
pub args: String,
pub message_id: Option<i64>,
pub thread_id: Option<i64>,
}Expand description
A /name args invocation.
Fields§
§chat: StringChat/channel id.
user: WireUserInvoking user.
name: StringCommand name, without prefix.
args: StringRaw argument string.
message_id: Option<i64>Message id of the invocation; assigned by the hub when omitted.
thread_id: Option<i64>Forum topic the command was sent in.
Trait Implementations§
Source§impl Clone for InboundCommand
impl Clone for InboundCommand
Source§fn clone(&self) -> InboundCommand
fn clone(&self) -> InboundCommand
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 InboundCommand
impl Debug for InboundCommand
Source§impl<'de> Deserialize<'de> for InboundCommand
impl<'de> Deserialize<'de> for InboundCommand
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 InboundCommand
impl PartialEq for InboundCommand
Source§impl Serialize for InboundCommand
impl Serialize for InboundCommand
impl StructuralPartialEq for InboundCommand
Auto Trait Implementations§
impl Freeze for InboundCommand
impl RefUnwindSafe for InboundCommand
impl Send for InboundCommand
impl Sync for InboundCommand
impl Unpin for InboundCommand
impl UnsafeUnpin for InboundCommand
impl UnwindSafe for InboundCommand
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