pub struct GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec {
pub boost: Option<f32>,
pub condition: Option<String>,
}Expand description
Boost applies to documents which match a condition.
This type is not used in any activity, and only used as part of another schema.
Fields§
§boost: Option<f32>Optional. Strength of the condition boost, which should be in [-1, 1]. Negative boost means demotion. Default is 0.0. Setting to 1.0 gives the document a big promotion. However, it does not necessarily mean that the boosted document will be the top result at all times, nor that other documents will be excluded. Results could still be shown even when none of them matches the condition. And results that are significantly more relevant to the search query can still trump your heavily favored but irrelevant documents. Setting to -1.0 gives the document a big demotion. However, results that are deeply relevant might still be shown. The document will have an upstream battle to get a fairly high ranking, but it is not blocked out completely. Setting to 0.0 means no boost applied. The boosting condition is ignored.
condition: Option<String>Optional. An expression which specifies a boost condition. The syntax and supported fields are the same as a filter expression. Examples: * To boost documents with document ID “doc_1” or “doc_2”, and color “Red” or “Blue”: * (id: ANY(“doc_1”, “doc_2”)) AND (color: ANY(“Red”,“Blue”))
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
impl Clone for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
fn clone(&self) -> GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
impl Default for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
Source§fn default() -> GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
fn default() -> GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Part for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
impl RefUnwindSafe for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
impl Send for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
impl Sync for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
impl Unpin for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
impl UnwindSafe for GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
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
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more