pub struct SlackApiChatStopStreamResponse {
pub channel: SlackChannelId,
pub ts: SlackTs,
pub message: Option<SlackMessage>,
}Fields§
§channel: SlackChannelId§ts: SlackTs§message: Option<SlackMessage>Implementations§
Source§impl SlackApiChatStopStreamResponse
impl SlackApiChatStopStreamResponse
Sourcepub fn new(channel: SlackChannelId, ts: SlackTs) -> Self
pub fn new(channel: SlackChannelId, ts: SlackTs) -> Self
Creates a new SlackApiChatStopStreamResponse 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 message(&mut self, value: SlackMessage) -> &mut Self
pub fn message(&mut self, value: SlackMessage) -> &mut Self
Sets message to Some(value).
Sourcepub fn reset_message(&mut self) -> &mut Self
pub fn reset_message(&mut self) -> &mut Self
Sets message to None.
Sourcepub fn mopt_message(&mut self, value: Option<SlackMessage>) -> &mut Self
pub fn mopt_message(&mut self, value: Option<SlackMessage>) -> &mut Self
Sets message to the given Option.
Sourcepub fn with_message(self, value: SlackMessage) -> Self
pub fn with_message(self, value: SlackMessage) -> Self
Returns self with message set to Some(value).
Sourcepub fn without_message(self) -> Self
pub fn without_message(self) -> Self
Returns self with message set to None.
Sourcepub fn opt_message(self, value: Option<SlackMessage>) -> Self
pub fn opt_message(self, value: Option<SlackMessage>) -> Self
Returns self with message set to the given Option.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackApiChatStopStreamResponse
impl<'de> Deserialize<'de> for SlackApiChatStopStreamResponse
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<SlackApiChatStopStreamResponseInit> for SlackApiChatStopStreamResponse
impl From<SlackApiChatStopStreamResponseInit> for SlackApiChatStopStreamResponse
Source§fn from(value: SlackApiChatStopStreamResponseInit) -> Self
fn from(value: SlackApiChatStopStreamResponseInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackApiChatStopStreamResponse
Auto Trait Implementations§
impl Freeze for SlackApiChatStopStreamResponse
impl RefUnwindSafe for SlackApiChatStopStreamResponse
impl Send for SlackApiChatStopStreamResponse
impl Sync for SlackApiChatStopStreamResponse
impl Unpin for SlackApiChatStopStreamResponse
impl UnsafeUnpin for SlackApiChatStopStreamResponse
impl UnwindSafe for SlackApiChatStopStreamResponse
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