pub struct TurnLimits {
pub max_rounds: u32,
pub max_tokens: u64,
pub deadline: Instant,
pub model: String,
}Expand description
The knobs of one turn (from the payload).
Fields§
§max_rounds: u32§max_tokens: u64§deadline: Instant§model: StringTrait Implementations§
Source§impl Clone for TurnLimits
impl Clone for TurnLimits
Source§fn clone(&self) -> TurnLimits
fn clone(&self) -> TurnLimits
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 moreAuto Trait Implementations§
impl Freeze for TurnLimits
impl RefUnwindSafe for TurnLimits
impl Send for TurnLimits
impl Sync for TurnLimits
impl Unpin for TurnLimits
impl UnsafeUnpin for TurnLimits
impl UnwindSafe for TurnLimits
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