pub struct LlmConnection {
pub id: String,
pub provider: String,
pub adapter: String,
pub display_secret_key: String,
pub base_url: Option<Option<String>>,
pub custom_models: Vec<String>,
pub with_default_models: bool,
pub extra_header_keys: Vec<String>,
pub created_at: String,
pub updated_at: String,
}Expand description
LlmConnection : LLM API connection configuration (secrets excluded)
Fields§
§id: String§provider: StringProvider name (e.g., ‘openai’, ‘my-gateway’). Must be unique in project, used for upserting.
adapter: StringThe adapter used to interface with the LLM
display_secret_key: StringMasked version of the secret key for display purposes
base_url: Option<Option<String>>Custom base URL for the LLM API
custom_models: Vec<String>List of custom model names available for this connection
with_default_models: boolWhether to include default models for this adapter
extra_header_keys: Vec<String>Keys of extra headers sent with requests (values excluded for security)
created_at: String§updated_at: StringImplementations§
Source§impl LlmConnection
impl LlmConnection
Trait Implementations§
Source§impl Clone for LlmConnection
impl Clone for LlmConnection
Source§fn clone(&self) -> LlmConnection
fn clone(&self) -> LlmConnection
Returns a duplicate of the value. Read more
1.0.0 · 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 LlmConnection
impl Debug for LlmConnection
Source§impl Default for LlmConnection
impl Default for LlmConnection
Source§fn default() -> LlmConnection
fn default() -> LlmConnection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LlmConnection
impl<'de> Deserialize<'de> for LlmConnection
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 LlmConnection
impl PartialEq for LlmConnection
Source§impl Serialize for LlmConnection
impl Serialize for LlmConnection
impl StructuralPartialEq for LlmConnection
Auto Trait Implementations§
impl Freeze for LlmConnection
impl RefUnwindSafe for LlmConnection
impl Send for LlmConnection
impl Sync for LlmConnection
impl Unpin for LlmConnection
impl UnwindSafe for LlmConnection
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