pub struct Message {
pub id: String,
pub conversation_id: String,
pub sender_id: String,
pub content: Option<String>,
pub message_type: String,
pub status: String,
pub reply_to_id: Option<String>,
pub data: Option<Value>,
pub execute_at: Option<String>,
pub complete_at: Option<String>,
pub created_at: String,
pub deleted_at: Option<String>,
}Expand description
消息
Fields§
§id: String§conversation_id: String§sender_id: String§content: Option<String>§message_type: String§status: String§reply_to_id: Option<String>§data: Option<Value>§execute_at: Option<String>§complete_at: Option<String>§created_at: String§deleted_at: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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 Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnsafeUnpin for Message
impl UnwindSafe for Message
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