pub struct ExternalAiBinding {
pub api_key: BindingValueString,
pub provider: String,
}Expand description
External AI provider binding configuration (BYO-key).
The operator-supplied secret rides inside the binding via
BindingValue<String>, so it is a literal on cloud platforms and gains
Kubernetes SecretRef resolution for free (extract_binding_secrets walks
the binding JSON for secretRef).
JSON schema
{
"description": "External AI provider binding configuration (BYO-key).\n\nThe operator-supplied secret rides inside the binding via\n`BindingValue<String>`, so it is a literal on cloud platforms and gains\nKubernetes SecretRef resolution for free (`extract_binding_secrets` walks\nthe binding JSON for `secretRef`).",
"type": "object",
"required": [
"apiKey",
"provider"
],
"properties": {
"apiKey": {
"$ref": "#/components/schemas/BindingValue_String"
},
"provider": {
"description": "The external AI provider name (e.g., \"openai\", \"anthropic\")",
"type": "string"
}
}
}Fields§
§api_key: BindingValueString§provider: StringThe external AI provider name (e.g., “openai”, “anthropic”)
Implementations§
Source§impl ExternalAiBinding
impl ExternalAiBinding
pub fn builder() -> ExternalAiBinding
Trait Implementations§
Source§impl Clone for ExternalAiBinding
impl Clone for ExternalAiBinding
Source§impl Debug for ExternalAiBinding
impl Debug for ExternalAiBinding
Source§impl<'de> Deserialize<'de> for ExternalAiBinding
impl<'de> Deserialize<'de> for ExternalAiBinding
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 From<&ExternalAiBinding> for ExternalAiBinding
impl From<&ExternalAiBinding> for ExternalAiBinding
Source§fn from(value: &ExternalAiBinding) -> Self
fn from(value: &ExternalAiBinding) -> Self
Converts to this type from the input type.
Source§impl From<ExternalAiBinding> for ExternalAiBinding
impl From<ExternalAiBinding> for ExternalAiBinding
Source§fn from(value: ExternalAiBinding) -> Self
fn from(value: ExternalAiBinding) -> Self
Converts to this type from the input type.
Source§impl Serialize for ExternalAiBinding
impl Serialize for ExternalAiBinding
Source§impl TryFrom<ExternalAiBinding> for ExternalAiBinding
impl TryFrom<ExternalAiBinding> for ExternalAiBinding
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ExternalAiBinding) -> Result<Self, ConversionError>
fn try_from(value: ExternalAiBinding) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Forget for ExternalAiBinding
impl Freeze for ExternalAiBinding
impl RefUnwindSafe for ExternalAiBinding
impl Send for ExternalAiBinding
impl Sync for ExternalAiBinding
impl Unpin for ExternalAiBinding
impl UnsafeUnpin for ExternalAiBinding
impl UnwindSafe for ExternalAiBinding
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