pub struct CommandResponse {
pub response_type: Option<String>,
pub text: Option<String>,
pub username: Option<String>,
pub icon_url: Option<String>,
pub goto_location: Option<String>,
pub attachments: Option<Vec<SlackAttachment>>,
}
Fields§
§response_type: Option<String>
The response type either in_channel or ephemeral
text: Option<String>
§username: Option<String>
§icon_url: Option<String>
§goto_location: Option<String>
§attachments: Option<Vec<SlackAttachment>>
Implementations§
Source§impl CommandResponse
impl CommandResponse
pub fn new() -> CommandResponse
Trait Implementations§
Source§impl Clone for CommandResponse
impl Clone for CommandResponse
Source§fn clone(&self) -> CommandResponse
fn clone(&self) -> CommandResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CommandResponse
impl Debug for CommandResponse
Source§impl Default for CommandResponse
impl Default for CommandResponse
Source§fn default() -> CommandResponse
fn default() -> CommandResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CommandResponse
impl<'de> Deserialize<'de> for CommandResponse
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 CommandResponse
impl PartialEq for CommandResponse
Source§impl Serialize for CommandResponse
impl Serialize for CommandResponse
impl StructuralPartialEq for CommandResponse
Auto Trait Implementations§
impl Freeze for CommandResponse
impl RefUnwindSafe for CommandResponse
impl Send for CommandResponse
impl Sync for CommandResponse
impl Unpin for CommandResponse
impl UnwindSafe for CommandResponse
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