pub enum ResponsePromptVariablesValue {
String(String),
InputTextContent(InputTextContent),
InputImageContent(InputImageContent),
InputFileContent(InputFileContent),
}Expand description
ResponsePromptVariablesValue
JSON schema
{
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/components/schemas/InputTextContent"
},
{
"$ref": "#/components/schemas/InputImageContent"
},
{
"$ref": "#/components/schemas/InputFileContent"
}
],
"x-oaiExpandable": true,
"x-oaiTypeLabel": "map"
}Variants§
String(String)
InputTextContent(InputTextContent)
InputImageContent(InputImageContent)
InputFileContent(InputFileContent)
Trait Implementations§
Source§impl Clone for ResponsePromptVariablesValue
impl Clone for ResponsePromptVariablesValue
Source§fn clone(&self) -> ResponsePromptVariablesValue
fn clone(&self) -> ResponsePromptVariablesValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ResponsePromptVariablesValue
impl Debug for ResponsePromptVariablesValue
Source§impl<'de> Deserialize<'de> for ResponsePromptVariablesValue
impl<'de> Deserialize<'de> for ResponsePromptVariablesValue
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 From<InputFileContent> for ResponsePromptVariablesValue
impl From<InputFileContent> for ResponsePromptVariablesValue
Source§fn from(value: InputFileContent) -> Self
fn from(value: InputFileContent) -> Self
Converts to this type from the input type.
Source§impl From<InputImageContent> for ResponsePromptVariablesValue
impl From<InputImageContent> for ResponsePromptVariablesValue
Source§fn from(value: InputImageContent) -> Self
fn from(value: InputImageContent) -> Self
Converts to this type from the input type.
Source§impl From<InputTextContent> for ResponsePromptVariablesValue
impl From<InputTextContent> for ResponsePromptVariablesValue
Source§fn from(value: InputTextContent) -> Self
fn from(value: InputTextContent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ResponsePromptVariablesValue
impl RefUnwindSafe for ResponsePromptVariablesValue
impl Send for ResponsePromptVariablesValue
impl Sync for ResponsePromptVariablesValue
impl Unpin for ResponsePromptVariablesValue
impl UnsafeUnpin for ResponsePromptVariablesValue
impl UnwindSafe for ResponsePromptVariablesValue
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