pub enum SlackStreamChunk {
MarkdownText {
text: String,
},
TaskUpdate {
id: SlackTaskId,
title: String,
hide_title: Option<bool>,
icon: Option<SlackTaskCardIcon>,
status: SlackTaskCardStatus,
details: Option<String>,
output: Option<String>,
sources: Option<Vec<SlackTaskCardSource>>,
},
PlanUpdate {
title: String,
},
Blocks {
blocks: Vec<SlackBlock>,
},
}Expand description
A streamed content chunk for chat.startStream / chat.appendStream / chat.stopStream.
https://docs.slack.dev/reference/methods/chat.appendStream#chunks
Variants§
MarkdownText
TaskUpdate
Fields
§
id: SlackTaskId§
icon: Option<SlackTaskCardIcon>§
status: SlackTaskCardStatus§
sources: Option<Vec<SlackTaskCardSource>>Slack rejects a source without text.
PlanUpdate
Blocks
Fields
§
blocks: Vec<SlackBlock>Trait Implementations§
Source§impl Clone for SlackStreamChunk
impl Clone for SlackStreamChunk
Source§fn clone(&self) -> SlackStreamChunk
fn clone(&self) -> SlackStreamChunk
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlackStreamChunk
impl Debug for SlackStreamChunk
Source§impl<'de> Deserialize<'de> for SlackStreamChunk
impl<'de> Deserialize<'de> for SlackStreamChunk
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 PartialEq for SlackStreamChunk
impl PartialEq for SlackStreamChunk
Source§impl Serialize for SlackStreamChunk
impl Serialize for SlackStreamChunk
impl StructuralPartialEq for SlackStreamChunk
Auto Trait Implementations§
impl Freeze for SlackStreamChunk
impl RefUnwindSafe for SlackStreamChunk
impl Send for SlackStreamChunk
impl Sync for SlackStreamChunk
impl Unpin for SlackStreamChunk
impl UnsafeUnpin for SlackStreamChunk
impl UnwindSafe for SlackStreamChunk
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