pub struct TextMessage {
pub role: String,
pub content: String,
pub name: Option<String>,
pub reasoning_content: Option<String>,
}Expand description
Plain role/content message.
Fields§
§role: StringRequest-side roles remain free-form strings so callers can use DeepSeek-compatible
extensions such as developer without waiting for a curated enum surface.
content: String§name: Option<String>§reasoning_content: Option<String>Trait Implementations§
Source§impl Clone for TextMessage
impl Clone for TextMessage
Source§fn clone(&self) -> TextMessage
fn clone(&self) -> TextMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TextMessage
impl Debug for TextMessage
Source§impl<'de> Deserialize<'de> for TextMessage
impl<'de> Deserialize<'de> for TextMessage
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 TextMessage
impl PartialEq for TextMessage
Source§fn eq(&self, other: &TextMessage) -> bool
fn eq(&self, other: &TextMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TextMessage
impl Serialize for TextMessage
impl StructuralPartialEq for TextMessage
Auto Trait Implementations§
impl Freeze for TextMessage
impl RefUnwindSafe for TextMessage
impl Send for TextMessage
impl Sync for TextMessage
impl Unpin for TextMessage
impl UnsafeUnpin for TextMessage
impl UnwindSafe for TextMessage
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