pub struct SlackAssistantThread {
pub user_id: SlackUserId,
pub context: SlackAssistantThreadContext,
pub channel_id: SlackChannelId,
pub thread_ts: SlackTs,
}Fields§
§user_id: SlackUserId§context: SlackAssistantThreadContext§channel_id: SlackChannelId§thread_ts: SlackTsImplementations§
Source§impl SlackAssistantThread
impl SlackAssistantThread
Sourcepub fn new(
user_id: SlackUserId,
context: SlackAssistantThreadContext,
channel_id: SlackChannelId,
thread_ts: SlackTs,
) -> Self
pub fn new( user_id: SlackUserId, context: SlackAssistantThreadContext, channel_id: SlackChannelId, thread_ts: SlackTs, ) -> Self
Creates a new SlackAssistantThread from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn user_id(&mut self, value: SlackUserId) -> &mut Self
pub fn user_id(&mut self, value: SlackUserId) -> &mut Self
Sets user_id to value.
Sourcepub fn with_user_id(self, value: SlackUserId) -> Self
pub fn with_user_id(self, value: SlackUserId) -> Self
Returns self with user_id set to value.
Sourcepub fn context(&mut self, value: SlackAssistantThreadContext) -> &mut Self
pub fn context(&mut self, value: SlackAssistantThreadContext) -> &mut Self
Sets context to value.
Sourcepub fn with_context(self, value: SlackAssistantThreadContext) -> Self
pub fn with_context(self, value: SlackAssistantThreadContext) -> Self
Returns self with context set to value.
Sourcepub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
Sets channel_id to value.
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 value.
Sourcepub fn with_thread_ts(self, value: SlackTs) -> Self
pub fn with_thread_ts(self, value: SlackTs) -> Self
Returns self with thread_ts set to value.
Trait Implementations§
Source§impl Clone for SlackAssistantThread
impl Clone for SlackAssistantThread
Source§impl Debug for SlackAssistantThread
impl Debug for SlackAssistantThread
Source§impl<'de> Deserialize<'de> for SlackAssistantThread
impl<'de> Deserialize<'de> for SlackAssistantThread
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<SlackAssistantThreadInit> for SlackAssistantThread
impl From<SlackAssistantThreadInit> for SlackAssistantThread
Source§fn from(value: SlackAssistantThreadInit) -> Self
fn from(value: SlackAssistantThreadInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackAssistantThread
impl PartialEq for SlackAssistantThread
Source§impl Serialize for SlackAssistantThread
impl Serialize for SlackAssistantThread
impl StructuralPartialEq for SlackAssistantThread
Auto Trait Implementations§
impl Freeze for SlackAssistantThread
impl RefUnwindSafe for SlackAssistantThread
impl Send for SlackAssistantThread
impl Sync for SlackAssistantThread
impl Unpin for SlackAssistantThread
impl UnsafeUnpin for SlackAssistantThread
impl UnwindSafe for SlackAssistantThread
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