Struct VertexConfig
pub struct VertexConfig {
pub project: String,
pub location: String,
pub access_token: String,
pub api_host: Option<String>,
}Expand description
Configuration for connecting through Vertex AI.
Fields§
§project: StringGoogle Cloud project ID (e.g. "my-project-123").
location: StringRegional location (e.g. "us-central1").
access_token: StringOAuth2 access token obtained from gcloud auth print-access-token
or a service-account token exchange.
api_host: Option<String>Optional API host override. Defaults to
{location}-aiplatform.googleapis.com.
Trait Implementations§
§impl Clone for VertexConfig
impl Clone for VertexConfig
§fn clone(&self) -> VertexConfig
fn clone(&self) -> VertexConfig
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 moreAuto Trait Implementations§
impl Freeze for VertexConfig
impl RefUnwindSafe for VertexConfig
impl Send for VertexConfig
impl Sync for VertexConfig
impl Unpin for VertexConfig
impl UnwindSafe for VertexConfig
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