Struct gapi_grpc::google::cloud::dataqna::v1alpha::AnnotatedString[][src]

pub struct AnnotatedString {
    pub text_formatted: String,
    pub html_formatted: String,
    pub markups: Vec<SemanticMarkup>,
}

Describes string annotation from both semantic and formatting perspectives. Example:

User Query:

top countries by population in Africa

0 4 14 17 28 31 37

Table Data:

text_formatted = "top countries by population in Africa"

html_formatted = "top <b>countries</b> by <b>population</b> in <i>Africa</i>"

markups = [
  {DIMENSION, 4, 12}, // 'countries'
  {METRIC, 17, 26}, // 'population'
  {FILTER, 31, 36}  // 'Africa'
]

Note that html formattings for ‘DIMENSION’ and ‘METRIC’ are the same, while semantic markups are different.

Fields

text_formatted: String

Text version of the string.

html_formatted: String

HTML version of the string annotation.

markups: Vec<SemanticMarkup>

Semantic version of the string annotation.

Trait Implementations

impl Clone for AnnotatedString[src]

impl Debug for AnnotatedString[src]

impl Default for AnnotatedString[src]

impl Message for AnnotatedString[src]

impl PartialEq<AnnotatedString> for AnnotatedString[src]

impl StructuralPartialEq for AnnotatedString[src]

Auto Trait Implementations

impl RefUnwindSafe for AnnotatedString

impl Send for AnnotatedString

impl Sync for AnnotatedString

impl Unpin for AnnotatedString

impl UnwindSafe for AnnotatedString

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]