pub struct SummarizationResult {
pub summary: String,
pub confidence: f32,
pub used_local_llm: bool,
}Expand description
Result of a summarization operation
Fields§
§summary: StringThe generated summary
confidence: f32Confidence score (0.0 - 1.0)
used_local_llm: boolWhether LLM was used
Implementations§
Source§impl SummarizationResult
impl SummarizationResult
Sourcepub fn from_local(summary: String, confidence: f32) -> Self
pub fn from_local(summary: String, confidence: f32) -> Self
Create a result from LLM summarization
Sourcepub fn from_fallback(summary: String) -> Self
pub fn from_fallback(summary: String) -> Self
Create a fallback result (simple truncation)
Trait Implementations§
Source§impl Clone for SummarizationResult
impl Clone for SummarizationResult
Source§fn clone(&self) -> SummarizationResult
fn clone(&self) -> SummarizationResult
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 moreAuto Trait Implementations§
impl Freeze for SummarizationResult
impl RefUnwindSafe for SummarizationResult
impl Send for SummarizationResult
impl Sync for SummarizationResult
impl Unpin for SummarizationResult
impl UnsafeUnpin for SummarizationResult
impl UnwindSafe for SummarizationResult
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