pub struct SlackApiChatAppendStreamRequest {
pub channel: SlackChannelId,
pub ts: SlackTs,
pub markdown_text: Option<String>,
pub chunks: Option<Vec<SlackStreamChunk>>,
}Fields§
§channel: SlackChannelId§ts: SlackTs§markdown_text: Option<String>§chunks: Option<Vec<SlackStreamChunk>>Implementations§
Source§impl SlackApiChatAppendStreamRequest
impl SlackApiChatAppendStreamRequest
Sourcepub fn new(channel: SlackChannelId, ts: SlackTs) -> Self
pub fn new(channel: SlackChannelId, ts: SlackTs) -> Self
Creates a new SlackApiChatAppendStreamRequest 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 markdown_text(&mut self, value: String) -> &mut Self
pub fn markdown_text(&mut self, value: String) -> &mut Self
Sets markdown_text to Some(value).
Sourcepub fn reset_markdown_text(&mut self) -> &mut Self
pub fn reset_markdown_text(&mut self) -> &mut Self
Sets markdown_text to None.
Sourcepub fn mopt_markdown_text(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_markdown_text(&mut self, value: Option<String>) -> &mut Self
Sets markdown_text to the given Option.
Sourcepub fn with_markdown_text(self, value: String) -> Self
pub fn with_markdown_text(self, value: String) -> Self
Returns self with markdown_text set to Some(value).
Sourcepub fn without_markdown_text(self) -> Self
pub fn without_markdown_text(self) -> Self
Returns self with markdown_text set to None.
Sourcepub fn opt_markdown_text(self, value: Option<String>) -> Self
pub fn opt_markdown_text(self, value: Option<String>) -> Self
Returns self with markdown_text set to the given Option.
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackApiChatAppendStreamRequest
impl<'de> Deserialize<'de> for SlackApiChatAppendStreamRequest
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<SlackApiChatAppendStreamRequestInit> for SlackApiChatAppendStreamRequest
impl From<SlackApiChatAppendStreamRequestInit> for SlackApiChatAppendStreamRequest
Source§fn from(value: SlackApiChatAppendStreamRequestInit) -> Self
fn from(value: SlackApiChatAppendStreamRequestInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiChatAppendStreamRequest
Auto Trait Implementations§
impl Freeze for SlackApiChatAppendStreamRequest
impl RefUnwindSafe for SlackApiChatAppendStreamRequest
impl Send for SlackApiChatAppendStreamRequest
impl Sync for SlackApiChatAppendStreamRequest
impl Unpin for SlackApiChatAppendStreamRequest
impl UnsafeUnpin for SlackApiChatAppendStreamRequest
impl UnwindSafe for SlackApiChatAppendStreamRequest
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