pub struct QueryCandidateDebug {
pub sample_rid: Option<String>,
pub fused_rank: Option<u32>,
pub fused_score: Option<f64>,
pub scores: Vec<QueryRetrieverScoreDebug>,
pub withheld_reason: Option<String>,
pub chunk_pointer: Option<KnowledgeChunk>,
}Fields§
§sample_rid: Option<String>§fused_rank: Option<u32>§fused_score: Option<f64>§scores: Vec<QueryRetrieverScoreDebug>§withheld_reason: Option<String>§chunk_pointer: Option<KnowledgeChunk>Implementations§
Source§impl QueryCandidateDebug
impl QueryCandidateDebug
Sourcepub fn sample_rid(&self) -> &str
pub fn sample_rid(&self) -> &str
Returns the value of sample_rid, or the default value if sample_rid is unset.
Sourcepub fn fused_rank(&self) -> u32
pub fn fused_rank(&self) -> u32
Returns the value of fused_rank, or the default value if fused_rank is unset.
Sourcepub fn fused_score(&self) -> f64
pub fn fused_score(&self) -> f64
Returns the value of fused_score, or the default value if fused_score is unset.
Sourcepub fn withheld_reason(&self) -> &str
pub fn withheld_reason(&self) -> &str
Returns the value of withheld_reason, or the default value if withheld_reason is unset.
Trait Implementations§
Source§impl Clone for QueryCandidateDebug
impl Clone for QueryCandidateDebug
Source§impl Debug for QueryCandidateDebug
impl Debug for QueryCandidateDebug
Source§impl Default for QueryCandidateDebug
impl Default for QueryCandidateDebug
Source§impl Message for QueryCandidateDebug
impl Message for QueryCandidateDebug
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 QueryCandidateDebug
impl PartialEq for QueryCandidateDebug
impl StructuralPartialEq for QueryCandidateDebug
Auto Trait Implementations§
impl Freeze for QueryCandidateDebug
impl RefUnwindSafe for QueryCandidateDebug
impl Send for QueryCandidateDebug
impl Sync for QueryCandidateDebug
impl Unpin for QueryCandidateDebug
impl UnsafeUnpin for QueryCandidateDebug
impl UnwindSafe for QueryCandidateDebug
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