pub struct SlackMessageMetadata {
pub event_type: String,
pub event_payload: Option<HashMap<String, String>>,
}
Fields§
§event_type: String
§event_payload: Option<HashMap<String, String>>
Implementations§
Source§impl SlackMessageMetadata
impl SlackMessageMetadata
pub fn new(event_type: String) -> Self
pub fn event_type(&mut self, value: String) -> &mut Self
pub fn with_event_type(self, value: String) -> Self
pub fn event_payload(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn reset_event_payload(&mut self) -> &mut Self
pub fn mopt_event_payload( &mut self, value: Option<HashMap<String, String>>, ) -> &mut Self
pub fn with_event_payload(self, value: HashMap<String, String>) -> Self
pub fn without_event_payload(self) -> Self
pub fn opt_event_payload(self, value: Option<HashMap<String, String>>) -> Self
Trait Implementations§
Source§impl Clone for SlackMessageMetadata
impl Clone for SlackMessageMetadata
Source§fn clone(&self) -> SlackMessageMetadata
fn clone(&self) -> SlackMessageMetadata
Returns a copy of the value. Read more
1.0.0 · 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 SlackMessageMetadata
impl Debug for SlackMessageMetadata
Source§impl<'de> Deserialize<'de> for SlackMessageMetadata
impl<'de> Deserialize<'de> for SlackMessageMetadata
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 From<SlackMessageMetadataInit> for SlackMessageMetadata
impl From<SlackMessageMetadataInit> for SlackMessageMetadata
Source§fn from(value: SlackMessageMetadataInit) -> Self
fn from(value: SlackMessageMetadataInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackMessageMetadata
impl PartialEq for SlackMessageMetadata
Source§impl Serialize for SlackMessageMetadata
impl Serialize for SlackMessageMetadata
impl StructuralPartialEq for SlackMessageMetadata
Auto Trait Implementations§
impl Freeze for SlackMessageMetadata
impl RefUnwindSafe for SlackMessageMetadata
impl Send for SlackMessageMetadata
impl Sync for SlackMessageMetadata
impl Unpin for SlackMessageMetadata
impl UnwindSafe for SlackMessageMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)