pub struct SlackAssistantThreadContext {
pub channel_id: Option<SlackChannelId>,
pub team_id: Option<SlackTeamId>,
pub enterprise_id: Option<SlackEnterpriseId>,
}Fields§
§channel_id: Option<SlackChannelId>§team_id: Option<SlackTeamId>§enterprise_id: Option<SlackEnterpriseId>Implementations§
Source§impl SlackAssistantThreadContext
impl SlackAssistantThreadContext
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackAssistantThreadContext from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
Sets channel_id to Some(value).
Sourcepub fn reset_channel_id(&mut self) -> &mut Self
pub fn reset_channel_id(&mut self) -> &mut Self
Sets channel_id to None.
Sourcepub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
Sets channel_id to the given Option.
Sourcepub fn with_channel_id(self, value: SlackChannelId) -> Self
pub fn with_channel_id(self, value: SlackChannelId) -> Self
Returns self with channel_id set to Some(value).
Sourcepub fn without_channel_id(self) -> Self
pub fn without_channel_id(self) -> Self
Returns self with channel_id set to None.
Sourcepub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
pub fn opt_channel_id(self, value: Option<SlackChannelId>) -> Self
Returns self with channel_id set to the given Option.
Sourcepub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
pub fn team_id(&mut self, value: SlackTeamId) -> &mut Self
Sets team_id to Some(value).
Sourcepub fn reset_team_id(&mut self) -> &mut Self
pub fn reset_team_id(&mut self) -> &mut Self
Sets team_id to None.
Sourcepub fn mopt_team_id(&mut self, value: Option<SlackTeamId>) -> &mut Self
pub fn mopt_team_id(&mut self, value: Option<SlackTeamId>) -> &mut Self
Sets team_id to the given Option.
Sourcepub fn with_team_id(self, value: SlackTeamId) -> Self
pub fn with_team_id(self, value: SlackTeamId) -> Self
Returns self with team_id set to Some(value).
Sourcepub fn without_team_id(self) -> Self
pub fn without_team_id(self) -> Self
Returns self with team_id set to None.
Sourcepub fn opt_team_id(self, value: Option<SlackTeamId>) -> Self
pub fn opt_team_id(self, value: Option<SlackTeamId>) -> Self
Returns self with team_id set to the given Option.
Sourcepub fn enterprise_id(&mut self, value: SlackEnterpriseId) -> &mut Self
pub fn enterprise_id(&mut self, value: SlackEnterpriseId) -> &mut Self
Sets enterprise_id to Some(value).
Sourcepub fn reset_enterprise_id(&mut self) -> &mut Self
pub fn reset_enterprise_id(&mut self) -> &mut Self
Sets enterprise_id to None.
Sourcepub fn mopt_enterprise_id(
&mut self,
value: Option<SlackEnterpriseId>,
) -> &mut Self
pub fn mopt_enterprise_id( &mut self, value: Option<SlackEnterpriseId>, ) -> &mut Self
Sets enterprise_id to the given Option.
Sourcepub fn with_enterprise_id(self, value: SlackEnterpriseId) -> Self
pub fn with_enterprise_id(self, value: SlackEnterpriseId) -> Self
Returns self with enterprise_id set to Some(value).
Sourcepub fn without_enterprise_id(self) -> Self
pub fn without_enterprise_id(self) -> Self
Returns self with enterprise_id set to None.
Sourcepub fn opt_enterprise_id(self, value: Option<SlackEnterpriseId>) -> Self
pub fn opt_enterprise_id(self, value: Option<SlackEnterpriseId>) -> Self
Returns self with enterprise_id set to the given Option.