pub struct ConversionResult {
pub output: String,
pub confidence: f64,
pub unmapped: Vec<String>,
pub tier: ConversionTier,
pub tokens: TokenStats,
pub used_fallback: bool,
}Expand description
Conversion result
Fields§
§output: StringConverted AISP output
confidence: f64Confidence score (0.0 - 1.0)
unmapped: Vec<String>Words that couldn’t be mapped
tier: ConversionTierConversion tier used
tokens: TokenStatsToken statistics
used_fallback: boolWhether LLM fallback was used (for gear-core integration)
Trait Implementations§
Source§impl Clone for ConversionResult
impl Clone for ConversionResult
Source§fn clone(&self) -> ConversionResult
fn clone(&self) -> ConversionResult
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 ConversionResult
impl Debug for ConversionResult
Source§impl<'de> Deserialize<'de> for ConversionResult
impl<'de> Deserialize<'de> for ConversionResult
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 ConversionResult
impl RefUnwindSafe for ConversionResult
impl Send for ConversionResult
impl Sync for ConversionResult
impl Unpin for ConversionResult
impl UnwindSafe for ConversionResult
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