Expand description
§gemini-rust
A Rust client library for Google’s Gemini 2.0 API.
Structs§
- Batch
- Represents a long-running batch operation, providing methods to manage its lifecycle.
- Batch
Builder - A builder for creating and executing synchronous batch content generation requests.
- Batch
Config - Batch configuration
- Batch
Metadata - Metadata for the batch operation
- Batch
Operation Response - Represents the response of a batch operation.
- Batch
Request Item - Individual batch request item
- Batch
Stats - Statistics for the batch
- Blob
- Blob for a message part
- Candidate
- A candidate response
- Citation
Metadata - Citation metadata for content
- Content
- Content of a message
- Content
Builder - Builder for content generation requests
- Function
Call - A function call made by the model
- Function
Declaration - Declaration of a function that can be called by the model
- Function
Parameters - Parameters for a function
- Gemini
- Client for the Gemini API
- Generate
Content Request - Request to generate content
- Generation
Config - Configuration for generation
- Generation
Response - Response from the Gemini API for content generation
- Inlined
Responses - A container for inlined responses.
- Input
Config - Input configuration for batch requests
- Message
- Message in a conversation
- Multi
Speaker Voice Config - Multi-speaker voice configuration
- Output
Config - Represents the output configuration of a batch operation.
- Prebuilt
Voice Config - Prebuilt voice configuration
- Prompt
Token Details - Details about prompt tokens by modality
- Property
Details - Details about a property
- Request
Metadata - Metadata for batch request
- Requests
Container - Container for requests
- Safety
Rating - Safety rating for content
- Speaker
Voice Config - Configuration for a specific speaker in multi-speaker TTS
- Speech
Config - Configuration for speech generation (text-to-speech)
- Thinking
Config - Configuration for thinking (Gemini 2.5 series only)
- Usage
Metadata - Metadata about token usage
- Voice
Config - Voice configuration for text-to-speech
Enums§
- Batch
Generate Content Response Item - An item in a batch generate content response.
- Batch
Result Item - The outcome of a single request in a batch operation.
- Batch
State - The state of a batch operation.
- Batch
Status - Represents the overall status of a batch operation.
- Error
- Errors that can occur when using the Gemini API
- Function
Calling Mode - Mode for function calling
- Part
- Content part that can be included in a message
- Role
- Role of a message in a conversation
- Task
Type - Embedding Task types
- Tool
- Tool that can be used by the model
Type Aliases§
- Result
- Result type for this crate