pub struct VertexAiConfig {
pub project: String,
pub location: String,
/* private fields */
}Expand description
Configuration for Vertex AI providers.
Fields§
§project: String§location: StringImplementations§
Source§impl VertexAiConfig
impl VertexAiConfig
Sourcepub fn from_env() -> Result<Self, String>
pub fn from_env() -> Result<Self, String>
Load from environment variables.
Token resolution order:
VERTEX_AI_TOKEN— explicit static tokenGOOGLE_APPLICATION_CREDENTIALSfile (authorized_user or service account key)~/.config/gcloud/application_default_credentials.json(ADC)- GCE/Cloud Run metadata server (http://metadata.google.internal/…)
gcloud auth print-access-tokensubprocess
Trait Implementations§
Source§impl Clone for VertexAiConfig
impl Clone for VertexAiConfig
Auto Trait Implementations§
impl !Freeze for VertexAiConfig
impl RefUnwindSafe for VertexAiConfig
impl Send for VertexAiConfig
impl Sync for VertexAiConfig
impl Unpin for VertexAiConfig
impl UnsafeUnpin for VertexAiConfig
impl UnwindSafe for VertexAiConfig
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