pub struct ChatCompletionSystemMessageParam {
pub content: String,
pub role: String,
pub name: Option<String>,
}Fields§
§content: StringThe contents of the system message.
role: StringThe role of the messages author, in this case system.
name: Option<String>An optional name for the participant. Provides the model information to differentiate between participants of the same role.
Trait Implementations§
Source§impl Clone for ChatCompletionSystemMessageParam
impl Clone for ChatCompletionSystemMessageParam
Source§fn clone(&self) -> ChatCompletionSystemMessageParam
fn clone(&self) -> ChatCompletionSystemMessageParam
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 Default for ChatCompletionSystemMessageParam
impl Default for ChatCompletionSystemMessageParam
Source§fn default() -> ChatCompletionSystemMessageParam
fn default() -> ChatCompletionSystemMessageParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatCompletionSystemMessageParam
impl<'de> Deserialize<'de> for ChatCompletionSystemMessageParam
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 ChatCompletionSystemMessageParam
impl RefUnwindSafe for ChatCompletionSystemMessageParam
impl Send for ChatCompletionSystemMessageParam
impl Sync for ChatCompletionSystemMessageParam
impl Unpin for ChatCompletionSystemMessageParam
impl UnwindSafe for ChatCompletionSystemMessageParam
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