pub struct ClientConfig {
pub api_key: Option<String>,
pub backend: Backend,
pub vertex_config: Option<VertexConfig>,
pub http_options: HttpOptions,
pub credentials: Credentials,
pub auth_scopes: Vec<String>,
}Expand description
客户端配置。
Fields§
§api_key: Option<String>API 密钥(Gemini API)。
backend: Backend后端选择。
vertex_config: Option<VertexConfig>Vertex AI 配置。
http_options: HttpOptionsHTTP 配置。
credentials: Credentials认证信息。
auth_scopes: Vec<String>OAuth scopes(服务账号/ADC 使用)。
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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