pub struct OutgoingMessage {
pub channel_type: ChannelType,
pub recipient_id: String,
pub content: MessageContent,
pub correlation_id: Uuid,
pub reply_to: Option<String>,
}Expand description
An outbound message to be sent through a channel
Fields§
§channel_type: ChannelTypeTarget channel platform
recipient_id: StringPlatform-specific recipient identifier
content: MessageContentMessage content to send
correlation_id: UuidCorrelation ID for distributed tracing
reply_to: Option<String>Message ID to reply to (platform-specific threading)
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 moreSource§impl Debug for OutgoingMessage
impl Debug for OutgoingMessage
Source§impl<'de> Deserialize<'de> for OutgoingMessage
impl<'de> Deserialize<'de> for OutgoingMessage
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
Auto 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