pub struct SlackApiChatStopStreamRequest {
pub channel: SlackChannelId,
pub ts: SlackTs,
pub content: SlackMessageContent,
pub chunks: Option<Vec<SlackStreamChunk>>,
pub session_status: Option<SlackAgentSessionStatus>,
}Fields§
§channel: SlackChannelId§ts: SlackTs§content: SlackMessageContent§chunks: Option<Vec<SlackStreamChunk>>§session_status: Option<SlackAgentSessionStatus>Implementations§
Source§impl SlackApiChatStopStreamRequest
impl SlackApiChatStopStreamRequest
Sourcepub fn new(
channel: SlackChannelId,
ts: SlackTs,
content: SlackMessageContent,
) -> Self
pub fn new( channel: SlackChannelId, ts: SlackTs, content: SlackMessageContent, ) -> Self
Creates a new SlackApiChatStopStreamRequest from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
Sets channel to value.
Sourcepub fn with_channel(self, value: SlackChannelId) -> Self
pub fn with_channel(self, value: SlackChannelId) -> Self
Returns self with channel set to value.
Sourcepub fn content(&mut self, value: SlackMessageContent) -> &mut Self
pub fn content(&mut self, value: SlackMessageContent) -> &mut Self
Sets content to value.
Sourcepub fn with_content(self, value: SlackMessageContent) -> Self
pub fn with_content(self, value: SlackMessageContent) -> Self
Returns self with content set to value.
Sourcepub fn chunks(&mut self, value: Vec<SlackStreamChunk>) -> &mut Self
pub fn chunks(&mut self, value: Vec<SlackStreamChunk>) -> &mut Self
Sets chunks to Some(value).
Sourcepub fn reset_chunks(&mut self) -> &mut Self
pub fn reset_chunks(&mut self) -> &mut Self
Sets chunks to None.
Sourcepub fn mopt_chunks(&mut self, value: Option<Vec<SlackStreamChunk>>) -> &mut Self
pub fn mopt_chunks(&mut self, value: Option<Vec<SlackStreamChunk>>) -> &mut Self
Sets chunks to the given Option.
Sourcepub fn with_chunks(self, value: Vec<SlackStreamChunk>) -> Self
pub fn with_chunks(self, value: Vec<SlackStreamChunk>) -> Self
Returns self with chunks set to Some(value).
Sourcepub fn without_chunks(self) -> Self
pub fn without_chunks(self) -> Self
Returns self with chunks set to None.
Sourcepub fn opt_chunks(self, value: Option<Vec<SlackStreamChunk>>) -> Self
pub fn opt_chunks(self, value: Option<Vec<SlackStreamChunk>>) -> Self
Returns self with chunks set to the given Option.
Sourcepub fn session_status(&mut self, value: SlackAgentSessionStatus) -> &mut Self
pub fn session_status(&mut self, value: SlackAgentSessionStatus) -> &mut Self
Sets session_status to Some(value).
Sourcepub fn reset_session_status(&mut self) -> &mut Self
pub fn reset_session_status(&mut self) -> &mut Self
Sets session_status to None.
Sourcepub fn mopt_session_status(
&mut self,
value: Option<SlackAgentSessionStatus>,
) -> &mut Self
pub fn mopt_session_status( &mut self, value: Option<SlackAgentSessionStatus>, ) -> &mut Self
Sets session_status to the given Option.
Sourcepub fn with_session_status(self, value: SlackAgentSessionStatus) -> Self
pub fn with_session_status(self, value: SlackAgentSessionStatus) -> Self
Returns self with session_status set to Some(value).
Sourcepub fn without_session_status(self) -> Self
pub fn without_session_status(self) -> Self
Returns self with session_status set to None.
Sourcepub fn opt_session_status(self, value: Option<SlackAgentSessionStatus>) -> Self
pub fn opt_session_status(self, value: Option<SlackAgentSessionStatus>) -> Self
Returns self with session_status set to the given Option.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackApiChatStopStreamRequest
impl<'de> Deserialize<'de> for SlackApiChatStopStreamRequest
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<SlackApiChatStopStreamRequestInit> for SlackApiChatStopStreamRequest
impl From<SlackApiChatStopStreamRequestInit> for SlackApiChatStopStreamRequest
Source§fn from(value: SlackApiChatStopStreamRequestInit) -> Self
fn from(value: SlackApiChatStopStreamRequestInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiChatStopStreamRequest
Auto Trait Implementations§
impl Freeze for SlackApiChatStopStreamRequest
impl RefUnwindSafe for SlackApiChatStopStreamRequest
impl Send for SlackApiChatStopStreamRequest
impl Sync for SlackApiChatStopStreamRequest
impl Unpin for SlackApiChatStopStreamRequest
impl UnsafeUnpin for SlackApiChatStopStreamRequest
impl UnwindSafe for SlackApiChatStopStreamRequest
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