pub struct VertexProviderConfig {
pub access_token_env: String,
pub project: Option<String>,
pub location: Option<String>,
pub models: Vec<String>,
pub base_url: Option<String>,
pub proxy: Option<ProviderProxyConfig>,
}Expand description
[providers.vertex] section.
Fields§
§access_token_env: StringEnv var name for the OAuth2 access token (default: VERTEX_ACCESS_TOKEN).
project: Option<String>GCP project ID.
location: Option<String>GCP location/region (e.g. us-central1).
models: Vec<String>Model names to advertise in –list-models.
base_url: Option<String>Override base URL for Vertex AI API.
proxy: Option<ProviderProxyConfig>Proxy configuration.
Trait Implementations§
Source§impl Clone for VertexProviderConfig
impl Clone for VertexProviderConfig
Source§fn clone(&self) -> VertexProviderConfig
fn clone(&self) -> VertexProviderConfig
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 VertexProviderConfig
impl Debug for VertexProviderConfig
Source§impl Default for VertexProviderConfig
impl Default for VertexProviderConfig
Source§fn default() -> VertexProviderConfig
fn default() -> VertexProviderConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for VertexProviderConfig
impl PartialEq for VertexProviderConfig
Source§fn eq(&self, other: &VertexProviderConfig) -> bool
fn eq(&self, other: &VertexProviderConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VertexProviderConfig
Auto Trait Implementations§
impl Freeze for VertexProviderConfig
impl RefUnwindSafe for VertexProviderConfig
impl Send for VertexProviderConfig
impl Sync for VertexProviderConfig
impl Unpin for VertexProviderConfig
impl UnsafeUnpin for VertexProviderConfig
impl UnwindSafe for VertexProviderConfig
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