Struct google_api_proto::google::cloud::contentwarehouse::v1::search_documents_response::MatchingDocument
source · pub struct MatchingDocument {
pub document: Option<Document>,
pub search_text_snippet: String,
pub qa_result: Option<QaResult>,
pub matched_token_page_indices: Vec<i64>,
}
Expand description
Document entry with metadata inside [SearchDocumentsResponse][google.cloud.contentwarehouse.v1.SearchDocumentsResponse]
Fields§
§document: Option<Document>
Document that matches the specified [SearchDocumentsRequest][google.cloud.contentwarehouse.v1.SearchDocumentsRequest]. This document only contains indexed metadata information.
search_text_snippet: String
Contains snippets of text from the document full raw text that most closely match a search query’s keywords, if available. All HTML tags in the original fields are stripped when returned in this field, and matching query keywords are enclosed in HTML bold tags.
If the question-answering feature is enabled, this field will instead contain a snippet that answers the user’s natural-language query. No HTML bold tags will be present, and highlights in the answer snippet can be found in [QAResult.highlights][google.cloud.contentwarehouse.v1.QAResult.highlights].
qa_result: Option<QaResult>
Experimental. Additional result info if the question-answering feature is enabled.
matched_token_page_indices: Vec<i64>
Return the 1-based page indices where those pages have one or more matched tokens.
Trait Implementations§
source§impl Clone for MatchingDocument
impl Clone for MatchingDocument
source§fn clone(&self) -> MatchingDocument
fn clone(&self) -> MatchingDocument
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MatchingDocument
impl Debug for MatchingDocument
source§impl Default for MatchingDocument
impl Default for MatchingDocument
source§impl Message for MatchingDocument
impl Message for MatchingDocument
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for MatchingDocument
impl PartialEq for MatchingDocument
source§fn eq(&self, other: &MatchingDocument) -> bool
fn eq(&self, other: &MatchingDocument) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MatchingDocument
Auto Trait Implementations§
impl !Freeze for MatchingDocument
impl RefUnwindSafe for MatchingDocument
impl Send for MatchingDocument
impl Sync for MatchingDocument
impl Unpin for MatchingDocument
impl UnwindSafe for MatchingDocument
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
T
in a tonic::Request