pub enum TaskComplexity {
Extraction,
Classification,
Reasoning,
Generation,
}Expand description
Task complexity hint.
Variants§
Implementations§
Source§impl TaskComplexity
impl TaskComplexity
pub fn min_quality_hint(self) -> f64
pub fn requires_reasoning(self) -> bool
Trait Implementations§
Source§impl Clone for TaskComplexity
impl Clone for TaskComplexity
Source§fn clone(&self) -> TaskComplexity
fn clone(&self) -> TaskComplexity
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 TaskComplexity
impl Debug for TaskComplexity
Source§impl Default for TaskComplexity
impl Default for TaskComplexity
Source§fn default() -> TaskComplexity
fn default() -> TaskComplexity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskComplexity
impl<'de> Deserialize<'de> for TaskComplexity
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 Hash for TaskComplexity
impl Hash for TaskComplexity
Source§impl PartialEq for TaskComplexity
impl PartialEq for TaskComplexity
Source§fn eq(&self, other: &TaskComplexity) -> bool
fn eq(&self, other: &TaskComplexity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TaskComplexity
impl Serialize for TaskComplexity
impl Copy for TaskComplexity
impl Eq for TaskComplexity
impl StructuralPartialEq for TaskComplexity
Auto Trait Implementations§
impl Freeze for TaskComplexity
impl RefUnwindSafe for TaskComplexity
impl Send for TaskComplexity
impl Sync for TaskComplexity
impl Unpin for TaskComplexity
impl UnsafeUnpin for TaskComplexity
impl UnwindSafe for TaskComplexity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.