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
Sourcepub fn new(
channel_id: SlackChannelId,
thread_ts: SlackTs,
prompts: Vec<SlackAssistantPrompt>,
) -> Self
pub fn new( channel_id: SlackChannelId, thread_ts: SlackTs, prompts: Vec<SlackAssistantPrompt>, ) -> Self
Creates a new SlackApiAssistantThreadsSetSuggestedPromptsRequest 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 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.
Sourcepub fn prompts(&mut self, value: Vec<SlackAssistantPrompt>) -> &mut Self
pub fn prompts(&mut self, value: Vec<SlackAssistantPrompt>) -> &mut Self
Sets prompts to value.
Sourcepub fn with_prompts(self, value: Vec<SlackAssistantPrompt>) -> Self
pub fn with_prompts(self, value: Vec<SlackAssistantPrompt>) -> Self
Returns self with prompts set to value.
Sourcepub fn reset_title(&mut self) -> &mut Self
pub fn reset_title(&mut self) -> &mut Self
Sets title to None.
Sourcepub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self
Sets title to the given Option.
Sourcepub fn with_title(self, value: String) -> Self
pub fn with_title(self, value: String) -> Self
Returns self with title set to Some(value).
Sourcepub fn without_title(self) -> Self
pub fn without_title(self) -> Self
Returns self with title set to None.
Trait Implementations§
Source§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.
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 UnsafeUnpin 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