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

pub struct Suggestion {
    pub suggestion_info: Option<SuggestionInfo>,
    pub ranking_score: f64,
    pub suggestion_type: i32,
}

A suggestion for a query with a ranking score.

Fields

suggestion_info: Option<SuggestionInfo>

Detailed information about the suggestion.

ranking_score: f64

The score of the suggestion. This can be used to define ordering in UI. The score represents confidence in the suggestion where higher is better. All score values must be in the range [0, 1).

suggestion_type: i32

The type of the suggestion.

Implementations

impl Suggestion[src]

pub fn suggestion_type(&self) -> SuggestionType[src]

Returns the enum value of suggestion_type, or the default if the field is set to an invalid enum value.

pub fn set_suggestion_type(&mut self, value: SuggestionType)[src]

Sets suggestion_type to the provided enum value.

Trait Implementations

impl Clone for Suggestion[src]

impl Debug for Suggestion[src]

impl Default for Suggestion[src]

impl Message for Suggestion[src]

impl PartialEq<Suggestion> for Suggestion[src]

impl StructuralPartialEq for Suggestion[src]

Auto Trait Implementations

impl RefUnwindSafe for Suggestion

impl Send for Suggestion

impl Sync for Suggestion

impl Unpin for Suggestion

impl UnwindSafe for Suggestion

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]