pub struct SystemMessagePart {
pub part_type: String,
pub text: String,
pub cache_control: Option<Value>,
}Expand description
A part of system message content.
Fields§
§part_type: StringType of the object. This is always "text".
text: StringSystem prompt text.
cache_control: Option<Value>(Unsupported) Cache control.
Trait Implementations§
Source§impl Clone for SystemMessagePart
impl Clone for SystemMessagePart
Source§fn clone(&self) -> SystemMessagePart
fn clone(&self) -> SystemMessagePart
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 SystemMessagePart
impl Debug for SystemMessagePart
Source§impl Default for SystemMessagePart
impl Default for SystemMessagePart
Source§fn default() -> SystemMessagePart
fn default() -> SystemMessagePart
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SystemMessagePart
impl<'de> Deserialize<'de> for SystemMessagePart
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 SystemMessagePart
impl PartialEq for SystemMessagePart
Source§impl Serialize for SystemMessagePart
impl Serialize for SystemMessagePart
impl StructuralPartialEq for SystemMessagePart
Auto Trait Implementations§
impl Freeze for SystemMessagePart
impl RefUnwindSafe for SystemMessagePart
impl Send for SystemMessagePart
impl Sync for SystemMessagePart
impl Unpin for SystemMessagePart
impl UnwindSafe for SystemMessagePart
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