pub struct CreateAzureOpenAiCredentialDto {
pub provider: ProviderTrue,
pub region: RegionTrue,
pub models: Vec<ModelsTrue>,
pub open_ai_key: String,
pub ocp_apim_subscription_key: Option<String>,
pub open_ai_endpoint: String,
pub name: Option<String>,
}
Fields§
§provider: ProviderTrue
§region: RegionTrue
§models: Vec<ModelsTrue>
§open_ai_key: String
This is not returned in the API.
ocp_apim_subscription_key: Option<String>
This is not returned in the API.
open_ai_endpoint: String
§name: Option<String>
This is the name of credential. This is just for your reference.
Implementations§
Source§impl CreateAzureOpenAiCredentialDto
impl CreateAzureOpenAiCredentialDto
pub fn new( provider: ProviderTrue, region: RegionTrue, models: Vec<ModelsTrue>, open_ai_key: String, open_ai_endpoint: String, ) -> CreateAzureOpenAiCredentialDto
Trait Implementations§
Source§impl Clone for CreateAzureOpenAiCredentialDto
impl Clone for CreateAzureOpenAiCredentialDto
Source§fn clone(&self) -> CreateAzureOpenAiCredentialDto
fn clone(&self) -> CreateAzureOpenAiCredentialDto
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for CreateAzureOpenAiCredentialDto
impl Default for CreateAzureOpenAiCredentialDto
Source§fn default() -> CreateAzureOpenAiCredentialDto
fn default() -> CreateAzureOpenAiCredentialDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateAzureOpenAiCredentialDto
impl<'de> Deserialize<'de> for CreateAzureOpenAiCredentialDto
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 CreateAzureOpenAiCredentialDto
impl PartialEq for CreateAzureOpenAiCredentialDto
Source§fn eq(&self, other: &CreateAzureOpenAiCredentialDto) -> bool
fn eq(&self, other: &CreateAzureOpenAiCredentialDto) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateAzureOpenAiCredentialDto
Auto Trait Implementations§
impl Freeze for CreateAzureOpenAiCredentialDto
impl RefUnwindSafe for CreateAzureOpenAiCredentialDto
impl Send for CreateAzureOpenAiCredentialDto
impl Sync for CreateAzureOpenAiCredentialDto
impl Unpin for CreateAzureOpenAiCredentialDto
impl UnwindSafe for CreateAzureOpenAiCredentialDto
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