pub struct ThinkingOffer {
pub levels: Vec<Effort>,
pub on: Switch,
pub default: Option<Effort>,
pub default_on: Option<bool>,
pub words: Vec<EffortWord>,
pub from: OfferSource,
pub source: Option<String>,
}Expand description
The thinking levels one (Endpoint, model) offers, as the gateway’s thinking ladder resolved them.
Sourced rather than said: from names the rung of the ladder that
answered, so a page never mistakes this for the upstream’s own words,
which are the other fields of the model row.
Fields§
§levels: Vec<Effort>In the city’s fixed ascending order; never none, because turning
thinking off is not a level. Empty means no thinking control.
on: SwitchWhether a model with a switch and no levels may be asked to think.
default: Option<Effort>The level the upstream says it uses when asked for none.
default_on: Option<bool>Whether the upstream says it thinks when sent nothing.
words: Vec<EffortWord>The upstream’s own word for a level, where it differs from the city’s spelling.
from: OfferSource§source: Option<String>Where a preset rung’s statement is written.
Implementations§
Source§impl ThinkingOffer
impl ThinkingOffer
Trait Implementations§
Source§impl Clone for ThinkingOffer
impl Clone for ThinkingOffer
Source§impl Debug for ThinkingOffer
impl Debug for ThinkingOffer
Source§impl<'de> Deserialize<'de> for ThinkingOffer
impl<'de> Deserialize<'de> for ThinkingOffer
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
impl Eq for ThinkingOffer
Source§impl PartialEq for ThinkingOffer
impl PartialEq for ThinkingOffer
Source§impl Serialize for ThinkingOffer
impl Serialize for ThinkingOffer
impl StructuralPartialEq for ThinkingOffer
Auto Trait Implementations§
impl Freeze for ThinkingOffer
impl RefUnwindSafe for ThinkingOffer
impl Send for ThinkingOffer
impl Sync for ThinkingOffer
impl Unpin for ThinkingOffer
impl UnsafeUnpin for ThinkingOffer
impl UnwindSafe for ThinkingOffer
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