pub struct ScoreChunk {
pub chunk: Box<NewChunkMetadataTypes>,
pub highlights: Option<Option<Vec<String>>>,
pub score: f32,
}
Fields§
§chunk: Box<NewChunkMetadataTypes>
§highlights: Option<Option<Vec<String>>>
§score: f32
Implementations§
Source§impl ScoreChunk
impl ScoreChunk
pub fn new(chunk: NewChunkMetadataTypes, score: f32) -> ScoreChunk
Trait Implementations§
Source§impl Clone for ScoreChunk
impl Clone for ScoreChunk
Source§fn clone(&self) -> ScoreChunk
fn clone(&self) -> ScoreChunk
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 ScoreChunk
impl Debug for ScoreChunk
Source§impl Default for ScoreChunk
impl Default for ScoreChunk
Source§fn default() -> ScoreChunk
fn default() -> ScoreChunk
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScoreChunk
impl<'de> Deserialize<'de> for ScoreChunk
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 PartialEq for ScoreChunk
impl PartialEq for ScoreChunk
Source§impl Serialize for ScoreChunk
impl Serialize for ScoreChunk
impl StructuralPartialEq for ScoreChunk
Auto Trait Implementations§
impl Freeze for ScoreChunk
impl RefUnwindSafe for ScoreChunk
impl Send for ScoreChunk
impl Sync for ScoreChunk
impl Unpin for ScoreChunk
impl UnwindSafe for ScoreChunk
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