pub struct SlackAgentSessionTitleChangedEvent {
pub channel: SlackChannelId,
pub thread_ts: Option<SlackTs>,
pub title: String,
pub previous_title: Option<String>,
pub user: Option<SlackUserId>,
pub team_id: Option<SlackTeamId>,
pub enterprise_id: Option<SlackEnterpriseId>,
pub event_ts: Option<SlackTs>,
}Expand description
https://docs.slack.dev/reference/events/agent_session_title_changed
Fields§
§channel: SlackChannelId§thread_ts: Option<SlackTs>§title: String§previous_title: Option<String>§user: Option<SlackUserId>§team_id: Option<SlackTeamId>§enterprise_id: Option<SlackEnterpriseId>Present for org-level installs.
event_ts: Option<SlackTs>Implementations§
Source§impl SlackAgentSessionTitleChangedEvent
impl SlackAgentSessionTitleChangedEvent
pub fn new(channel: SlackChannelId, title: String) -> 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 title(&mut self, value: String) -> &mut Self
pub fn with_title(self, value: String) -> Self
pub fn previous_title(&mut self, value: String) -> &mut Self
pub fn reset_previous_title(&mut self) -> &mut Self
pub fn mopt_previous_title(&mut self, value: Option<String>) -> &mut Self
pub fn with_previous_title(self, value: String) -> Self
pub fn without_previous_title(self) -> Self
pub fn opt_previous_title(self, value: Option<String>) -> 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 team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn reset_team_id(&mut self) -> &mut Self
pub fn mopt_team_id(&mut self, value: Option<SlackTeamId>) -> &mut Self
pub fn with_team_id(self, value: SlackTeamId) -> Self
pub fn without_team_id(self) -> Self
pub fn opt_team_id(self, value: Option<SlackTeamId>) -> Self
pub fn enterprise_id(&mut self, value: SlackEnterpriseId) -> &mut Self
pub fn reset_enterprise_id(&mut self) -> &mut Self
pub fn mopt_enterprise_id( &mut self, value: Option<SlackEnterpriseId>, ) -> &mut Self
pub fn with_enterprise_id(self, value: SlackEnterpriseId) -> Self
pub fn without_enterprise_id(self) -> Self
pub fn opt_enterprise_id(self, value: Option<SlackEnterpriseId>) -> 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 SlackAgentSessionTitleChangedEvent
impl Clone for SlackAgentSessionTitleChangedEvent
Source§fn clone(&self) -> SlackAgentSessionTitleChangedEvent
fn clone(&self) -> SlackAgentSessionTitleChangedEvent
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 SlackAgentSessionTitleChangedEvent
impl<'de> Deserialize<'de> for SlackAgentSessionTitleChangedEvent
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<SlackAgentSessionTitleChangedEventInit> for SlackAgentSessionTitleChangedEvent
impl From<SlackAgentSessionTitleChangedEventInit> for SlackAgentSessionTitleChangedEvent
Source§fn from(value: SlackAgentSessionTitleChangedEventInit) -> Self
fn from(value: SlackAgentSessionTitleChangedEventInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackAgentSessionTitleChangedEvent
Auto Trait Implementations§
impl Freeze for SlackAgentSessionTitleChangedEvent
impl RefUnwindSafe for SlackAgentSessionTitleChangedEvent
impl Send for SlackAgentSessionTitleChangedEvent
impl Sync for SlackAgentSessionTitleChangedEvent
impl Unpin for SlackAgentSessionTitleChangedEvent
impl UnsafeUnpin for SlackAgentSessionTitleChangedEvent
impl UnwindSafe for SlackAgentSessionTitleChangedEvent
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