pub struct Command {Show 17 fields
pub id: Option<String>,
pub token: Option<String>,
pub create_at: Option<i32>,
pub update_at: Option<i64>,
pub delete_at: Option<i64>,
pub creator_id: Option<String>,
pub team_id: Option<String>,
pub trigger: Option<String>,
pub method: Option<String>,
pub username: Option<String>,
pub icon_url: Option<String>,
pub auto_complete: Option<bool>,
pub auto_complete_desc: Option<String>,
pub auto_complete_hint: Option<String>,
pub display_name: Option<String>,
pub description: Option<String>,
pub url: Option<String>,
}
Fields§
§id: Option<String>
The ID of the slash command
token: Option<String>
The token which is used to verify the source of the payload
create_at: Option<i32>
The time in milliseconds the command was created
update_at: Option<i64>
The time in milliseconds the command was last updated
delete_at: Option<i64>
The time in milliseconds the command was deleted, 0 if never deleted
creator_id: Option<String>
The user id for the commands creator
team_id: Option<String>
The team id for which this command is configured
trigger: Option<String>
The string that triggers this command
method: Option<String>
Is the trigger done with HTTP Get (‘G’) or HTTP Post (‘P’)
username: Option<String>
What is the username for the response post
icon_url: Option<String>
The url to find the icon for this users avatar
auto_complete: Option<bool>
Use auto complete for this command
auto_complete_desc: Option<String>
The description for this command shown when selecting the command
auto_complete_hint: Option<String>
The hint for this command
display_name: Option<String>
Display name for the command
description: Option<String>
Description for this command
url: Option<String>
The URL that is triggered
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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