pub struct SystemMessage {
pub role: String,
pub message: String,
pub time: f64,
pub seconds_from_start: f64,
}
Fields§
§role: String
The role of the system in the conversation.
message: String
The message content from the system.
time: f64
The timestamp when the message was sent.
seconds_from_start: f64
The number of seconds from the start of the conversation.
Implementations§
Source§impl SystemMessage
impl SystemMessage
Trait Implementations§
Source§impl Clone for SystemMessage
impl Clone for SystemMessage
Source§fn clone(&self) -> SystemMessage
fn clone(&self) -> SystemMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SystemMessage
impl Debug for SystemMessage
Source§impl Default for SystemMessage
impl Default for SystemMessage
Source§fn default() -> SystemMessage
fn default() -> SystemMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemMessage
impl<'de> Deserialize<'de> for SystemMessage
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 SystemMessage
impl PartialEq for SystemMessage
Source§impl Serialize for SystemMessage
impl Serialize for SystemMessage
impl StructuralPartialEq for SystemMessage
Auto Trait Implementations§
impl Freeze for SystemMessage
impl RefUnwindSafe for SystemMessage
impl Send for SystemMessage
impl Sync for SystemMessage
impl Unpin for SystemMessage
impl UnwindSafe for SystemMessage
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