pub struct ChatCompletionRequestDeveloperMessage {
    pub content: Content,
    pub name: Option<String>,
}Expand description
Developer-provided instructions that the model should follow, regardless of
messages sent by the user. With o1 models and newer, developer messages
replace the previous system messages.
Fields§
§content: ContentThe contents of the developer message.
name: Option<String>An optional name for the participant. Provides the model information to differentiate between participants of the same role.
Implementations§
Source§impl ChatCompletionRequestDeveloperMessage
 
impl ChatCompletionRequestDeveloperMessage
Sourcepub fn builder() -> ChatCompletionRequestDeveloperMessageBuilder<((), ())>
 
pub fn builder() -> ChatCompletionRequestDeveloperMessageBuilder<((), ())>
Create a builder for building ChatCompletionRequestDeveloperMessage.
On the builder, call .content(...), .name(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ChatCompletionRequestDeveloperMessage.
Trait Implementations§
Source§impl Clone for ChatCompletionRequestDeveloperMessage
 
impl Clone for ChatCompletionRequestDeveloperMessage
Source§fn clone(&self) -> ChatCompletionRequestDeveloperMessage
 
fn clone(&self) -> ChatCompletionRequestDeveloperMessage
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<'de> Deserialize<'de> for ChatCompletionRequestDeveloperMessage
 
impl<'de> Deserialize<'de> for ChatCompletionRequestDeveloperMessage
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 ChatCompletionRequestDeveloperMessage
 
impl PartialEq for ChatCompletionRequestDeveloperMessage
Source§fn eq(&self, other: &ChatCompletionRequestDeveloperMessage) -> bool
 
fn eq(&self, other: &ChatCompletionRequestDeveloperMessage) -> bool
Tests for 
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ChatCompletionRequestDeveloperMessage
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestDeveloperMessage
impl RefUnwindSafe for ChatCompletionRequestDeveloperMessage
impl Send for ChatCompletionRequestDeveloperMessage
impl Sync for ChatCompletionRequestDeveloperMessage
impl Unpin for ChatCompletionRequestDeveloperMessage
impl UnwindSafe for ChatCompletionRequestDeveloperMessage
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