pub struct SlackAssistantPrompt {
pub title: String,
pub message: String,
}Fields§
§title: String§message: StringImplementations§
Source§impl SlackAssistantPrompt
impl SlackAssistantPrompt
Sourcepub fn new(title: String, message: String) -> Self
pub fn new(title: String, message: String) -> Self
Creates a new SlackAssistantPrompt from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn with_title(self, value: String) -> Self
pub fn with_title(self, value: String) -> Self
Returns self with title set to value.
Sourcepub fn with_message(self, value: String) -> Self
pub fn with_message(self, value: String) -> Self
Returns self with message set to value.
Trait Implementations§
Source§impl Clone for SlackAssistantPrompt
impl Clone for SlackAssistantPrompt
Source§impl Debug for SlackAssistantPrompt
impl Debug for SlackAssistantPrompt
Source§impl<'de> Deserialize<'de> for SlackAssistantPrompt
impl<'de> Deserialize<'de> for SlackAssistantPrompt
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<SlackAssistantPromptInit> for SlackAssistantPrompt
impl From<SlackAssistantPromptInit> for SlackAssistantPrompt
Source§fn from(value: SlackAssistantPromptInit) -> Self
fn from(value: SlackAssistantPromptInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackAssistantPrompt
impl PartialEq for SlackAssistantPrompt
Source§impl Serialize for SlackAssistantPrompt
impl Serialize for SlackAssistantPrompt
impl StructuralPartialEq for SlackAssistantPrompt
Auto Trait Implementations§
impl Freeze for SlackAssistantPrompt
impl RefUnwindSafe for SlackAssistantPrompt
impl Send for SlackAssistantPrompt
impl Sync for SlackAssistantPrompt
impl Unpin for SlackAssistantPrompt
impl UnsafeUnpin for SlackAssistantPrompt
impl UnwindSafe for SlackAssistantPrompt
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