pub struct GenerationControls {
pub temperature: bool,
pub temperature_max: Option<f64>,
pub thinking: bool,
pub reasoning_efforts: Vec<String>,
pub reasoning_effort_default: Option<String>,
pub fast_mode: bool,
}Expand description
What a settings UI may expose after intersecting catalog facts with the backend protocol.
This is the same judgment resolve uses; a hidden control cannot appear on the wire, and
a shown control is one the current backend can actually carry.
Fields§
§temperature: bool§temperature_max: Option<f64>§thinking: bool§reasoning_efforts: Vec<String>§reasoning_effort_default: Option<String>§fast_mode: boolTrait Implementations§
Source§impl Clone for GenerationControls
impl Clone for GenerationControls
Source§fn clone(&self) -> GenerationControls
fn clone(&self) -> GenerationControls
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 GenerationControls
impl Debug for GenerationControls
Source§impl Default for GenerationControls
impl Default for GenerationControls
Source§fn default() -> GenerationControls
fn default() -> GenerationControls
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GenerationControls
impl<'de> Deserialize<'de> for GenerationControls
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GenerationControls
impl PartialEq for GenerationControls
Source§impl Serialize for GenerationControls
impl Serialize for GenerationControls
impl StructuralPartialEq for GenerationControls
Auto Trait Implementations§
impl Freeze for GenerationControls
impl RefUnwindSafe for GenerationControls
impl Send for GenerationControls
impl Sync for GenerationControls
impl Unpin for GenerationControls
impl UnsafeUnpin for GenerationControls
impl UnwindSafe for GenerationControls
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