pub struct EvalRunOutputItemSampleOutput {
pub role: Option<String>,
pub content: Option<String>,
}
Fields§
§role: Option<String>
The role of the message (e.g. “system”, “assistant”, “user”).
content: Option<String>
The content of the message.
Implementations§
Source§impl EvalRunOutputItemSampleOutput
impl EvalRunOutputItemSampleOutput
Sourcepub fn builder() -> EvalRunOutputItemSampleOutputBuilder<((), ())>
pub fn builder() -> EvalRunOutputItemSampleOutputBuilder<((), ())>
Create a builder for building EvalRunOutputItemSampleOutput
.
On the builder, call .role(...)
(optional), .content(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of EvalRunOutputItemSampleOutput
.
Trait Implementations§
Source§impl Clone for EvalRunOutputItemSampleOutput
impl Clone for EvalRunOutputItemSampleOutput
Source§fn clone(&self) -> EvalRunOutputItemSampleOutput
fn clone(&self) -> EvalRunOutputItemSampleOutput
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 EvalRunOutputItemSampleOutput
impl Default for EvalRunOutputItemSampleOutput
Source§fn default() -> EvalRunOutputItemSampleOutput
fn default() -> EvalRunOutputItemSampleOutput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EvalRunOutputItemSampleOutput
impl<'de> Deserialize<'de> for EvalRunOutputItemSampleOutput
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 EvalRunOutputItemSampleOutput
impl PartialEq for EvalRunOutputItemSampleOutput
Source§fn eq(&self, other: &EvalRunOutputItemSampleOutput) -> bool
fn eq(&self, other: &EvalRunOutputItemSampleOutput) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for EvalRunOutputItemSampleOutput
Auto Trait Implementations§
impl Freeze for EvalRunOutputItemSampleOutput
impl RefUnwindSafe for EvalRunOutputItemSampleOutput
impl Send for EvalRunOutputItemSampleOutput
impl Sync for EvalRunOutputItemSampleOutput
impl Unpin for EvalRunOutputItemSampleOutput
impl UnwindSafe for EvalRunOutputItemSampleOutput
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