pub struct MessageWithMeta {
pub id: String,
pub agent_name: String,
pub agent_id: String,
pub text: String,
pub blocks: Option<Vec<MessageBlock>>,
pub metadata: Map<String, Value>,
pub attachments: Vec<FileAttachment>,
pub created_at: String,
pub reply_count: i64,
pub reactions: Vec<ReactionGroup>,
pub read_by_count: i64,
pub injection_mode: Option<MessageInjectionMode>,
}Fields§
§id: String§agent_name: String§agent_id: String§text: String§blocks: Option<Vec<MessageBlock>>§metadata: Map<String, Value>§attachments: Vec<FileAttachment>§created_at: String§reply_count: i64§reactions: Vec<ReactionGroup>§read_by_count: i64§injection_mode: Option<MessageInjectionMode>Trait Implementations§
Source§impl Clone for MessageWithMeta
impl Clone for MessageWithMeta
Source§fn clone(&self) -> MessageWithMeta
fn clone(&self) -> MessageWithMeta
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 MessageWithMeta
impl Debug for MessageWithMeta
Source§impl<'de> Deserialize<'de> for MessageWithMeta
impl<'de> Deserialize<'de> for MessageWithMeta
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 MessageWithMeta
impl RefUnwindSafe for MessageWithMeta
impl Send for MessageWithMeta
impl Sync for MessageWithMeta
impl Unpin for MessageWithMeta
impl UnsafeUnpin for MessageWithMeta
impl UnwindSafe for MessageWithMeta
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