pub struct QueryRetrieverScoreDebug {
pub retriever_name: Option<String>,
pub matched: Option<bool>,
pub rank: Option<u32>,
pub raw_score: Option<f64>,
pub normalized_score: Option<f64>,
pub weighted_score: Option<f64>,
}Fields§
§retriever_name: Option<String>§matched: Option<bool>§rank: Option<u32>§raw_score: Option<f64>§normalized_score: Option<f64>§weighted_score: Option<f64>Implementations§
Source§impl QueryRetrieverScoreDebug
impl QueryRetrieverScoreDebug
Sourcepub fn retriever_name(&self) -> &str
pub fn retriever_name(&self) -> &str
Returns the value of retriever_name, or the default value if retriever_name is unset.
Sourcepub fn matched(&self) -> bool
pub fn matched(&self) -> bool
Returns the value of matched, or the default value if matched is unset.
Sourcepub fn raw_score(&self) -> f64
pub fn raw_score(&self) -> f64
Returns the value of raw_score, or the default value if raw_score is unset.
Sourcepub fn normalized_score(&self) -> f64
pub fn normalized_score(&self) -> f64
Returns the value of normalized_score, or the default value if normalized_score is unset.
Sourcepub fn weighted_score(&self) -> f64
pub fn weighted_score(&self) -> f64
Returns the value of weighted_score, or the default value if weighted_score is unset.
Trait Implementations§
Source§impl Clone for QueryRetrieverScoreDebug
impl Clone for QueryRetrieverScoreDebug
Source§impl Debug for QueryRetrieverScoreDebug
impl Debug for QueryRetrieverScoreDebug
Source§impl Default for QueryRetrieverScoreDebug
impl Default for QueryRetrieverScoreDebug
Source§impl Message for QueryRetrieverScoreDebug
impl Message for QueryRetrieverScoreDebug
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for QueryRetrieverScoreDebug
impl PartialEq for QueryRetrieverScoreDebug
impl StructuralPartialEq for QueryRetrieverScoreDebug
Auto Trait Implementations§
impl Freeze for QueryRetrieverScoreDebug
impl RefUnwindSafe for QueryRetrieverScoreDebug
impl Send for QueryRetrieverScoreDebug
impl Sync for QueryRetrieverScoreDebug
impl Unpin for QueryRetrieverScoreDebug
impl UnsafeUnpin for QueryRetrieverScoreDebug
impl UnwindSafe for QueryRetrieverScoreDebug
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request