Struct gapi_grpc::google::cloud::dataqna::v1alpha::suggestion_info::MatchInfo[][src]

pub struct MatchInfo {
    pub start_char_index: i32,
    pub length: i32,
}

MatchInfo describes which part of suggestion matched with data in user typed query. This can be used to highlight matching parts in the UI. This is different from the annotations provided in annotated_suggestion. The annotated_suggestion provides information about the semantic meaning, while this provides information about how it relates to the input.

Example: user query: top products

annotated_suggestion {
 text_formatted = "top product_group"
 html_formatted = "top <b>product_group</b>"
 markups {
  {type: TEXT, start_char_index: 0, length: 3}
  {type: DIMENSION, start_char_index: 4, length: 13}
 }
}

query_matches {
 { start_char_index: 0, length: 3 }
 { start_char_index: 4, length: 7}
}

Fields

start_char_index: i32

Unicode character index of the string annotation.

length: i32

Count of unicode characters of this substring.

Trait Implementations

impl Clone for MatchInfo[src]

impl Debug for MatchInfo[src]

impl Default for MatchInfo[src]

impl Message for MatchInfo[src]

impl PartialEq<MatchInfo> for MatchInfo[src]

impl StructuralPartialEq for MatchInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for MatchInfo

impl Send for MatchInfo

impl Sync for MatchInfo

impl Unpin for MatchInfo

impl UnwindSafe for MatchInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]