pub struct CreateCustomLlmCredentialDto {
pub provider: ProviderTrue,
pub api_key: String,
pub authentication_plan: Option<OAuth2AuthenticationPlan>,
pub name: Option<String>,
}
Fields§
§provider: ProviderTrue
§api_key: String
This is not returned in the API.
authentication_plan: Option<OAuth2AuthenticationPlan>
This is the authentication plan. Currently supports OAuth2 RFC 6749. To use Bearer authentication, use apiKey
name: Option<String>
This is the name of credential. This is just for your reference.
Implementations§
Source§impl CreateCustomLlmCredentialDto
impl CreateCustomLlmCredentialDto
pub fn new( provider: ProviderTrue, api_key: String, ) -> CreateCustomLlmCredentialDto
Trait Implementations§
Source§impl Clone for CreateCustomLlmCredentialDto
impl Clone for CreateCustomLlmCredentialDto
Source§fn clone(&self) -> CreateCustomLlmCredentialDto
fn clone(&self) -> CreateCustomLlmCredentialDto
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 Debug for CreateCustomLlmCredentialDto
impl Debug for CreateCustomLlmCredentialDto
Source§impl Default for CreateCustomLlmCredentialDto
impl Default for CreateCustomLlmCredentialDto
Source§fn default() -> CreateCustomLlmCredentialDto
fn default() -> CreateCustomLlmCredentialDto
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCustomLlmCredentialDto
impl<'de> Deserialize<'de> for CreateCustomLlmCredentialDto
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 CreateCustomLlmCredentialDto
impl PartialEq for CreateCustomLlmCredentialDto
Source§fn eq(&self, other: &CreateCustomLlmCredentialDto) -> bool
fn eq(&self, other: &CreateCustomLlmCredentialDto) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateCustomLlmCredentialDto
Auto Trait Implementations§
impl Freeze for CreateCustomLlmCredentialDto
impl RefUnwindSafe for CreateCustomLlmCredentialDto
impl Send for CreateCustomLlmCredentialDto
impl Sync for CreateCustomLlmCredentialDto
impl Unpin for CreateCustomLlmCredentialDto
impl UnwindSafe for CreateCustomLlmCredentialDto
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