pub struct ChannelMessageEnvelope {
pub id: String,
pub tenant: TenantCtx,
pub channel: String,
pub session_id: String,
pub user_id: Option<String>,
pub text: Option<String>,
pub attachments: Vec<Attachment>,
pub metadata: MessageMetadata,
}Expand description
Envelope for channel messages exchanged with adapters.
Fields§
§id: StringStable identifier for the message.
tenant: TenantCtxTenant context propagated with the message.
channel: StringAbstract channel identifier or type.
session_id: StringConversation or thread identifier.
user_id: Option<String>Optional user identifier associated with the message.
text: Option<String>Optional text content.
attachments: Vec<Attachment>Attachments included with the message.
metadata: MessageMetadataFree-form metadata for adapters and flows.
Trait Implementations§
Source§impl Clone for ChannelMessageEnvelope
impl Clone for ChannelMessageEnvelope
Source§fn clone(&self) -> ChannelMessageEnvelope
fn clone(&self) -> ChannelMessageEnvelope
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 ChannelMessageEnvelope
impl Debug for ChannelMessageEnvelope
Source§impl<'de> Deserialize<'de> for ChannelMessageEnvelope
impl<'de> Deserialize<'de> for ChannelMessageEnvelope
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 PartialEq for ChannelMessageEnvelope
impl PartialEq for ChannelMessageEnvelope
Source§impl Serialize for ChannelMessageEnvelope
impl Serialize for ChannelMessageEnvelope
impl Eq for ChannelMessageEnvelope
impl StructuralPartialEq for ChannelMessageEnvelope
Auto Trait Implementations§
impl Freeze for ChannelMessageEnvelope
impl RefUnwindSafe for ChannelMessageEnvelope
impl Send for ChannelMessageEnvelope
impl Sync for ChannelMessageEnvelope
impl Unpin for ChannelMessageEnvelope
impl UnwindSafe for ChannelMessageEnvelope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.