pub struct ProviderExtra {
pub azure_resource: Option<String>,
pub azure_deployment: Option<String>,
pub aws_region: Option<String>,
pub gcp_project: Option<String>,
pub gcp_location: Option<String>,
pub cf_account_id: Option<String>,
pub cf_gateway_id: Option<String>,
pub gateway_provider: Option<String>,
}Expand description
Provider-specific extra configuration
Fields§
§azure_resource: Option<String>Azure resource name (for Azure OpenAI)
azure_deployment: Option<String>Azure deployment name (for Azure OpenAI)
aws_region: Option<String>AWS region (for Bedrock)
gcp_project: Option<String>Google Cloud project ID (for Vertex AI)
gcp_location: Option<String>Google Cloud location (for Vertex AI)
cf_account_id: Option<String>Cloudflare account ID (for AI Gateway)
cf_gateway_id: Option<String>Cloudflare gateway ID (for AI Gateway)
gateway_provider: Option<String>Target provider for gateway routing (OpenRouter, Cloudflare)
Trait Implementations§
Source§impl Clone for ProviderExtra
impl Clone for ProviderExtra
Source§fn clone(&self) -> ProviderExtra
fn clone(&self) -> ProviderExtra
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 ProviderExtra
impl Debug for ProviderExtra
Source§impl Default for ProviderExtra
impl Default for ProviderExtra
Source§fn default() -> ProviderExtra
fn default() -> ProviderExtra
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderExtra
impl<'de> Deserialize<'de> for ProviderExtra
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
Auto Trait Implementations§
impl Freeze for ProviderExtra
impl RefUnwindSafe for ProviderExtra
impl Send for ProviderExtra
impl Sync for ProviderExtra
impl Unpin for ProviderExtra
impl UnwindSafe for ProviderExtra
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more