pub struct TaskConstraints {
pub timeout_ms: Option<u64>,
pub max_tokens: Option<u32>,
pub model: Option<String>,
}Expand description
Constraints block for a task request.
Fields§
§timeout_ms: Option<u64>§max_tokens: Option<u32>§model: Option<String>Trait Implementations§
Source§impl Clone for TaskConstraints
impl Clone for TaskConstraints
Source§fn clone(&self) -> TaskConstraints
fn clone(&self) -> TaskConstraints
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 TaskConstraints
impl Debug for TaskConstraints
Auto Trait Implementations§
impl Freeze for TaskConstraints
impl RefUnwindSafe for TaskConstraints
impl Send for TaskConstraints
impl Sync for TaskConstraints
impl Unpin for TaskConstraints
impl UnsafeUnpin for TaskConstraints
impl UnwindSafe for TaskConstraints
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