pub struct GenerationOptions {
pub max_output_tokens: Option<u32>,
pub temperature: Option<f32>,
pub thinking_level: Option<ThinkingLevel>,
pub service_tier: ServiceTier,
}Expand description
Shared generation controls.
Fields§
§max_output_tokens: Option<u32>Optional maximum generated token budget, including thinking tokens. Omission lets Gemini select its model default.
temperature: Option<f32>Optional sampling temperature in the inclusive range 0 through 2.
thinking_level: Option<ThinkingLevel>Optional maximum thinking depth; omission uses the model default.
service_tier: ServiceTierGemini scheduling and pricing tier.
Trait Implementations§
Source§impl Clone for GenerationOptions
impl Clone for GenerationOptions
Source§fn clone(&self) -> GenerationOptions
fn clone(&self) -> GenerationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GenerationOptions
impl Debug for GenerationOptions
Source§impl Default for GenerationOptions
impl Default for GenerationOptions
Source§impl PartialEq for GenerationOptions
impl PartialEq for GenerationOptions
impl StructuralPartialEq for GenerationOptions
Auto Trait Implementations§
impl Freeze for GenerationOptions
impl RefUnwindSafe for GenerationOptions
impl Send for GenerationOptions
impl Sync for GenerationOptions
impl Unpin for GenerationOptions
impl UnsafeUnpin for GenerationOptions
impl UnwindSafe for GenerationOptions
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