pub struct OutboundChannelMessage {
pub session_id: SessionId,
pub text: String,
pub thread_ref: String,
pub is_progress_report: bool,
pub correlation_id: Option<String>,
}Expand description
A platform-agnostic outbound message to deliver to a channel.
The delivery adapter translates this into platform-specific API calls (e.g. Slack chat.postMessage, Discord channel message create).
Fields§
§session_id: SessionIdThe session this message belongs to.
text: StringText content to deliver.
thread_ref: StringThread reference for reply targeting.
is_progress_report: boolWhether this is a progress report (vs. a final answer).
correlation_id: Option<String>Id of the input message this reply answers, when the platform can stamp
it onto the posted message for later correlation. None leaves the
message unstamped rather than inventing a key.
Trait Implementations§
Source§impl Clone for OutboundChannelMessage
impl Clone for OutboundChannelMessage
Source§fn clone(&self) -> OutboundChannelMessage
fn clone(&self) -> OutboundChannelMessage
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 moreAuto Trait Implementations§
impl Freeze for OutboundChannelMessage
impl RefUnwindSafe for OutboundChannelMessage
impl Send for OutboundChannelMessage
impl Sync for OutboundChannelMessage
impl Unpin for OutboundChannelMessage
impl UnsafeUnpin for OutboundChannelMessage
impl UnwindSafe for OutboundChannelMessage
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