pub struct MessageBase {
pub message_id: String,
pub conversation_id: Option<String>,
pub created_at: u64,
}
Expand description
对话基础信息
Fields§
§message_id: String
消息唯一 ID
conversation_id: Option<String>
会话 ID
created_at: u64
创建时间戳,如:1705395332
Trait Implementations§
Source§impl Clone for MessageBase
impl Clone for MessageBase
Source§fn clone(&self) -> MessageBase
fn clone(&self) -> MessageBase
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 MessageBase
impl Debug for MessageBase
Source§impl<'de> Deserialize<'de> for MessageBase
impl<'de> Deserialize<'de> for MessageBase
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 MessageBase
impl RefUnwindSafe for MessageBase
impl Send for MessageBase
impl Sync for MessageBase
impl Unpin for MessageBase
impl UnwindSafe for MessageBase
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