pub struct SummaryItem {
pub sentence: String,
pub score: f32,
}Expand description
A single sentence picked by summarize_community, with the
final MMR-adjusted score at the moment it was selected.
Fields§
§sentence: StringThe original sentence text.
score: f32The score at selection time (post-MMR penalty).
Trait Implementations§
Source§impl Clone for SummaryItem
impl Clone for SummaryItem
Source§fn clone(&self) -> SummaryItem
fn clone(&self) -> SummaryItem
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 SummaryItem
impl Debug for SummaryItem
Source§impl PartialEq for SummaryItem
impl PartialEq for SummaryItem
Source§fn eq(&self, other: &SummaryItem) -> bool
fn eq(&self, other: &SummaryItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SummaryItem
Auto Trait Implementations§
impl Freeze for SummaryItem
impl RefUnwindSafe for SummaryItem
impl Send for SummaryItem
impl Sync for SummaryItem
impl Unpin for SummaryItem
impl UnsafeUnpin for SummaryItem
impl UnwindSafe for SummaryItem
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