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
pub fn new() -> Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn reset_channel_id(&mut self) -> &mut Self
pub fn mopt_channel_id(&mut self, value: Option<SlackChannelId>) -> &mut Self
pub fn with_channel_id(self, value: SlackChannelId) -> Self
pub fn without_channel_id(self) -> Self
pub fn opt_channel_id(self, value: Option<SlackChannelId>) -> 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
Trait Implementations§
Source§impl Clone for SlackAssistantThreadContext
impl Clone for SlackAssistantThreadContext
Source§fn clone(&self) -> SlackAssistantThreadContext
fn clone(&self) -> SlackAssistantThreadContext
Returns a duplicate 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 SlackAssistantThreadContext
impl Debug for SlackAssistantThreadContext
Source§impl<'de> Deserialize<'de> for SlackAssistantThreadContext
impl<'de> Deserialize<'de> for SlackAssistantThreadContext
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<SlackAssistantThreadContextInit> for SlackAssistantThreadContext
impl From<SlackAssistantThreadContextInit> for SlackAssistantThreadContext
Source§fn from(value: SlackAssistantThreadContextInit) -> Self
fn from(value: SlackAssistantThreadContextInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackAssistantThreadContext
Auto Trait Implementations§
impl Freeze for SlackAssistantThreadContext
impl RefUnwindSafe for SlackAssistantThreadContext
impl Send for SlackAssistantThreadContext
impl Sync for SlackAssistantThreadContext
impl Unpin for SlackAssistantThreadContext
impl UnwindSafe for SlackAssistantThreadContext
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