pub struct Client { /* private fields */ }Expand description
Gemini 客户端。
Implementations§
Source§impl Client
impl Client
Sourcepub fn with_oauth(client_secret_path: impl AsRef<Path>) -> Result<Self>
pub fn with_oauth(client_secret_path: impl AsRef<Path>) -> Result<Self>
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
创建 Builder。
Sourcepub fn file_search_stores(&self) -> FileSearchStores
pub fn file_search_stores(&self) -> FileSearchStores
访问 FileSearchStores API。
Sourcepub fn live_music(&self) -> LiveMusic
pub fn live_music(&self) -> LiveMusic
访问 Live Music API。
Sourcepub fn operations(&self) -> Operations
pub fn operations(&self) -> Operations
访问 Operations API。
Sourcepub fn auth_tokens(&self) -> AuthTokens
pub fn auth_tokens(&self) -> AuthTokens
访问 AuthTokens API(Ephemeral Tokens)。
Sourcepub fn tokens(&self) -> Tokens
pub fn tokens(&self) -> Tokens
访问 Tokens API(Ephemeral Tokens)。
与官方 SDK 的 tokens 命名保持一致(等价于 auth_tokens())。
Sourcepub fn interactions(&self) -> Interactions
pub fn interactions(&self) -> Interactions
访问 Interactions API。
Sourcepub fn deep_research(&self) -> DeepResearch
pub fn deep_research(&self) -> DeepResearch
访问 Deep Research。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl !UnwindSafe for Client
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