pub enum MaxOutputTokens {
Integer(u32),
Inf(InfMarker),
}Expand description
Integer token limit (1–4096) or "inf" for the maximum available tokens.
Defaults to "inf".
Variant order matters for #[serde(untagged)]: serde tries Integer first.
A JSON number succeeds immediately; the string "inf" fails Integer and
falls through to Inf.
Variants§
Trait Implementations§
Source§impl Clone for MaxOutputTokens
impl Clone for MaxOutputTokens
Source§fn clone(&self) -> MaxOutputTokens
fn clone(&self) -> MaxOutputTokens
Returns a duplicate of the value. Read more
1.0.0 · 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 MaxOutputTokens
impl Debug for MaxOutputTokens
Source§impl Default for MaxOutputTokens
impl Default for MaxOutputTokens
Source§impl<'de> Deserialize<'de> for MaxOutputTokens
impl<'de> Deserialize<'de> for MaxOutputTokens
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
Auto Trait Implementations§
impl Freeze for MaxOutputTokens
impl RefUnwindSafe for MaxOutputTokens
impl Send for MaxOutputTokens
impl Sync for MaxOutputTokens
impl Unpin for MaxOutputTokens
impl UnsafeUnpin for MaxOutputTokens
impl UnwindSafe for MaxOutputTokens
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