pub struct SlackAgentSessionStoppedEvent {
pub channel: SlackChannelId,
pub thread_ts: Option<SlackTs>,
pub streaming_message_ts: Option<Vec<SlackTs>>,
pub user: Option<SlackUserId>,
pub event_ts: Option<SlackTs>,
}Expand description
https://docs.slack.dev/reference/events/agent_session_stopped
Fields§
§channel: SlackChannelId§thread_ts: Option<SlackTs>§streaming_message_ts: Option<Vec<SlackTs>>§user: Option<SlackUserId>§event_ts: Option<SlackTs>Implementations§
Source§impl SlackAgentSessionStoppedEvent
impl SlackAgentSessionStoppedEvent
pub fn new(channel: SlackChannelId) -> Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_channel(self, value: SlackChannelId) -> Self
pub fn thread_ts(&mut self, value: SlackTs) -> &mut Self
pub fn reset_thread_ts(&mut self) -> &mut Self
pub fn mopt_thread_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn with_thread_ts(self, value: SlackTs) -> Self
pub fn without_thread_ts(self) -> Self
pub fn opt_thread_ts(self, value: Option<SlackTs>) -> Self
pub fn streaming_message_ts(&mut self, value: Vec<SlackTs>) -> &mut Self
pub fn reset_streaming_message_ts(&mut self) -> &mut Self
pub fn mopt_streaming_message_ts( &mut self, value: Option<Vec<SlackTs>>, ) -> &mut Self
pub fn with_streaming_message_ts(self, value: Vec<SlackTs>) -> Self
pub fn without_streaming_message_ts(self) -> Self
pub fn opt_streaming_message_ts(self, value: Option<Vec<SlackTs>>) -> Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn reset_user(&mut self) -> &mut Self
pub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn with_user(self, value: SlackUserId) -> Self
pub fn without_user(self) -> Self
pub fn opt_user(self, value: Option<SlackUserId>) -> Self
pub fn event_ts(&mut self, value: SlackTs) -> &mut Self
pub fn reset_event_ts(&mut self) -> &mut Self
pub fn mopt_event_ts(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn with_event_ts(self, value: SlackTs) -> Self
pub fn without_event_ts(self) -> Self
pub fn opt_event_ts(self, value: Option<SlackTs>) -> Self
Trait Implementations§
Source§impl Clone for SlackAgentSessionStoppedEvent
impl Clone for SlackAgentSessionStoppedEvent
Source§fn clone(&self) -> SlackAgentSessionStoppedEvent
fn clone(&self) -> SlackAgentSessionStoppedEvent
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<'de> Deserialize<'de> for SlackAgentSessionStoppedEvent
impl<'de> Deserialize<'de> for SlackAgentSessionStoppedEvent
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<SlackAgentSessionStoppedEventInit> for SlackAgentSessionStoppedEvent
impl From<SlackAgentSessionStoppedEventInit> for SlackAgentSessionStoppedEvent
Source§fn from(value: SlackAgentSessionStoppedEventInit) -> Self
fn from(value: SlackAgentSessionStoppedEventInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackAgentSessionStoppedEvent
Auto Trait Implementations§
impl Freeze for SlackAgentSessionStoppedEvent
impl RefUnwindSafe for SlackAgentSessionStoppedEvent
impl Send for SlackAgentSessionStoppedEvent
impl Sync for SlackAgentSessionStoppedEvent
impl Unpin for SlackAgentSessionStoppedEvent
impl UnsafeUnpin for SlackAgentSessionStoppedEvent
impl UnwindSafe for SlackAgentSessionStoppedEvent
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