pub struct ExternalAiBinding {
pub provider: String,
pub api_key: BindingValue<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).
Fields§
§provider: StringThe external AI provider name (e.g., “openai”, “anthropic”)
api_key: BindingValue<String>The provider API key. Resolved to plaintext in the worker environment (literal on cloud, Kubernetes Secret on K8s) so the SDK reads it directly.
Trait Implementations§
Source§impl Clone for ExternalAiBinding
impl Clone for ExternalAiBinding
Source§fn clone(&self) -> ExternalAiBinding
fn clone(&self) -> ExternalAiBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
impl Eq for ExternalAiBinding
Source§impl PartialEq for ExternalAiBinding
impl PartialEq for ExternalAiBinding
Source§impl Serialize for ExternalAiBinding
impl Serialize for ExternalAiBinding
impl StructuralPartialEq for ExternalAiBinding
Auto Trait Implementations§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.