pub struct CustomLlmCredential {
pub provider: ProviderTrue,
pub api_key: String,
pub authentication_plan: Option<OAuth2AuthenticationPlan>,
pub id: String,
pub org_id: String,
pub created_at: String,
pub updated_at: String,
pub authentication_session: Option<Oauth2AuthenticationSession>,
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
id: String
This is the unique identifier for the credential.
org_id: String
This is the unique identifier for the org that this credential belongs to.
created_at: String
This is the ISO 8601 date-time string of when the credential was created.
updated_at: String
This is the ISO 8601 date-time string of when the assistant was last updated.
authentication_session: Option<Oauth2AuthenticationSession>
This is the authentication session for the credential. Available for credentials that have an authentication plan.
name: Option<String>
This is the name of credential. This is just for your reference.
Implementations§
Source§impl CustomLlmCredential
impl CustomLlmCredential
pub fn new( provider: ProviderTrue, api_key: String, id: String, org_id: String, created_at: String, updated_at: String, ) -> CustomLlmCredential
Trait Implementations§
Source§impl Clone for CustomLlmCredential
impl Clone for CustomLlmCredential
Source§fn clone(&self) -> CustomLlmCredential
fn clone(&self) -> CustomLlmCredential
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 CustomLlmCredential
impl Debug for CustomLlmCredential
Source§impl Default for CustomLlmCredential
impl Default for CustomLlmCredential
Source§fn default() -> CustomLlmCredential
fn default() -> CustomLlmCredential
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CustomLlmCredential
impl<'de> Deserialize<'de> for CustomLlmCredential
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 CustomLlmCredential
impl PartialEq for CustomLlmCredential
Source§impl Serialize for CustomLlmCredential
impl Serialize for CustomLlmCredential
impl StructuralPartialEq for CustomLlmCredential
Auto Trait Implementations§
impl Freeze for CustomLlmCredential
impl RefUnwindSafe for CustomLlmCredential
impl Send for CustomLlmCredential
impl Sync for CustomLlmCredential
impl Unpin for CustomLlmCredential
impl UnwindSafe for CustomLlmCredential
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