pub struct TargetCreateOpenAi {
pub api_key: Option<String>,
pub api_key_id: Option<String>,
pub description: Option<String>,
pub json: Option<bool>,
pub key: Option<String>,
pub max_versions: Option<String>,
pub model: Option<String>,
pub name: String,
pub openai_url: Option<String>,
pub organization_id: Option<String>,
pub token: Option<String>,
pub uid_token: Option<String>,
}Expand description
TargetCreateOpenAi : targetCreateOpenAI is a command that creates a new openai target
Fields§
§api_key: Option<String>API key for OpenAI
api_key_id: Option<String>API key ID
description: Option<String>Description of the object
json: Option<bool>Set output format to JSON
key: Option<String>The name of a key that used to encrypt the target secret value (if empty, the account default protectionKey key will be used)
max_versions: Option<String>Set the maximum number of versions, limited by the account settings defaults.
model: Option<String>Default model to use with OpenAI
name: StringTarget name
openai_url: Option<String>Base URL of the OpenAI API
organization_id: Option<String>Organization ID
token: Option<String>Authentication token (see /auth and /configure)
uid_token: Option<String>The universal identity token, Required only for universal_identity authentication
Implementations§
Source§impl TargetCreateOpenAi
impl TargetCreateOpenAi
Sourcepub fn new(name: String) -> TargetCreateOpenAi
pub fn new(name: String) -> TargetCreateOpenAi
targetCreateOpenAI is a command that creates a new openai target
Trait Implementations§
Source§impl Clone for TargetCreateOpenAi
impl Clone for TargetCreateOpenAi
Source§fn clone(&self) -> TargetCreateOpenAi
fn clone(&self) -> TargetCreateOpenAi
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 TargetCreateOpenAi
impl Debug for TargetCreateOpenAi
Source§impl Default for TargetCreateOpenAi
impl Default for TargetCreateOpenAi
Source§fn default() -> TargetCreateOpenAi
fn default() -> TargetCreateOpenAi
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetCreateOpenAi
impl<'de> Deserialize<'de> for TargetCreateOpenAi
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 TargetCreateOpenAi
impl PartialEq for TargetCreateOpenAi
Source§fn eq(&self, other: &TargetCreateOpenAi) -> bool
fn eq(&self, other: &TargetCreateOpenAi) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TargetCreateOpenAi
impl Serialize for TargetCreateOpenAi
impl StructuralPartialEq for TargetCreateOpenAi
Auto Trait Implementations§
impl Freeze for TargetCreateOpenAi
impl RefUnwindSafe for TargetCreateOpenAi
impl Send for TargetCreateOpenAi
impl Sync for TargetCreateOpenAi
impl Unpin for TargetCreateOpenAi
impl UnsafeUnpin for TargetCreateOpenAi
impl UnwindSafe for TargetCreateOpenAi
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