pub struct ChatCompletionRequestMessageContentPartRefusal {
pub refusal: String,
pub _type: String,
}
Expand description
§on openapi.yaml
ChatCompletionRequestMessageContentPartRefusal:
type: object
title: Refusal content part
properties:
type:
type: string
enum:
- refusal
description: The type of the content part.
x-stainless-const: true
refusal:
type: string
description: The refusal message generated by the model.
required:
- type
- refusal
Fields§
§refusal: String
The refusal message generated by the model.
_type: String
The type of the content part.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatCompletionRequestMessageContentPartRefusal
impl<'de> Deserialize<'de> for ChatCompletionRequestMessageContentPartRefusal
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 ChatCompletionRequestMessageContentPartRefusal
impl PartialEq for ChatCompletionRequestMessageContentPartRefusal
Source§fn eq(&self, other: &ChatCompletionRequestMessageContentPartRefusal) -> bool
fn eq(&self, other: &ChatCompletionRequestMessageContentPartRefusal) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ChatCompletionRequestMessageContentPartRefusal
Auto Trait Implementations§
impl Freeze for ChatCompletionRequestMessageContentPartRefusal
impl RefUnwindSafe for ChatCompletionRequestMessageContentPartRefusal
impl Send for ChatCompletionRequestMessageContentPartRefusal
impl Sync for ChatCompletionRequestMessageContentPartRefusal
impl Unpin for ChatCompletionRequestMessageContentPartRefusal
impl UnwindSafe for ChatCompletionRequestMessageContentPartRefusal
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