pub struct OutgoingMessage {
pub text: String,
pub attachments: Vec<PathBuf>,
pub in_reply_to: Option<String>,
}Expand description
What the agent needs to send back to the user. Same shape regardless of platform — the adapter does the format/layout.
Fields§
§text: String§attachments: Vec<PathBuf>Optional file attachments (paths on disk; adapter uploads).
in_reply_to: Option<String>Optional thread/reply target — channel_id of the message we’re replying to. None = post as a fresh top-level message.
Implementations§
Trait Implementations§
Source§impl Clone for OutgoingMessage
impl Clone for OutgoingMessage
Source§fn clone(&self) -> OutgoingMessage
fn clone(&self) -> OutgoingMessage
Returns a duplicate of the value. Read more
1.0.0 · 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 OutgoingMessage
impl RefUnwindSafe for OutgoingMessage
impl Send for OutgoingMessage
impl Sync for OutgoingMessage
impl Unpin for OutgoingMessage
impl UnsafeUnpin for OutgoingMessage
impl UnwindSafe for OutgoingMessage
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