pub struct SlackApiAssistantThreadsSetSuggestedPromptsRequest {
pub channel_id: SlackChannelId,
pub thread_ts: SlackTs,
pub prompts: Vec<SlackAssistantPrompt>,
pub title: Option<String>,
}Fields§
§channel_id: SlackChannelId§thread_ts: SlackTs§prompts: Vec<SlackAssistantPrompt>§title: Option<String>Implementations§
Source§impl SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl SlackApiAssistantThreadsSetSuggestedPromptsRequest
pub fn new( channel_id: SlackChannelId, thread_ts: SlackTs, prompts: Vec<SlackAssistantPrompt>, ) -> Self
pub fn channel_id(&mut self, value: SlackChannelId) -> &mut Self
pub fn with_channel_id(self, value: SlackChannelId) -> Self
pub fn thread_ts(&mut self, value: SlackTs) -> &mut Self
pub fn with_thread_ts(self, value: SlackTs) -> Self
pub fn prompts(&mut self, value: Vec<SlackAssistantPrompt>) -> &mut Self
pub fn with_prompts(self, value: Vec<SlackAssistantPrompt>) -> Self
pub fn title(&mut self, value: String) -> &mut Self
pub fn reset_title(&mut self) -> &mut Self
pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
pub fn with_title(self, value: String) -> Self
pub fn without_title(self) -> Self
pub fn opt_title(self, value: Option<String>) -> Self
Trait Implementations§
Source§impl Clone for SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl Clone for SlackApiAssistantThreadsSetSuggestedPromptsRequest
Source§fn clone(&self) -> SlackApiAssistantThreadsSetSuggestedPromptsRequest
fn clone(&self) -> SlackApiAssistantThreadsSetSuggestedPromptsRequest
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<'de> Deserialize<'de> for SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl<'de> Deserialize<'de> for SlackApiAssistantThreadsSetSuggestedPromptsRequest
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<SlackApiAssistantThreadsSetSuggestedPromptsRequestInit> for SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl From<SlackApiAssistantThreadsSetSuggestedPromptsRequestInit> for SlackApiAssistantThreadsSetSuggestedPromptsRequest
Source§fn from(value: SlackApiAssistantThreadsSetSuggestedPromptsRequestInit) -> Self
fn from(value: SlackApiAssistantThreadsSetSuggestedPromptsRequestInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl PartialEq for SlackApiAssistantThreadsSetSuggestedPromptsRequest
Source§fn eq(&self, other: &SlackApiAssistantThreadsSetSuggestedPromptsRequest) -> bool
fn eq(&self, other: &SlackApiAssistantThreadsSetSuggestedPromptsRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SlackApiAssistantThreadsSetSuggestedPromptsRequest
Auto Trait Implementations§
impl Freeze for SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl RefUnwindSafe for SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl Send for SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl Sync for SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl Unpin for SlackApiAssistantThreadsSetSuggestedPromptsRequest
impl UnwindSafe for SlackApiAssistantThreadsSetSuggestedPromptsRequest
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