pub struct GoogleCloudRetailV2SearchRequestQueryExpansionSpec {
pub condition: Option<String>,
pub pin_unexpanded_results: Option<bool>,
}Expand description
Specification to determine under which conditions query expansion should occur.
This type is not used in any activity, and only used as part of another schema.
Fields§
§condition: Option<String>The condition under which query expansion should occur. Default to Condition.DISABLED.
pin_unexpanded_results: Option<bool>Whether to pin unexpanded results. The default value is false. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results.
Trait Implementations§
Source§impl Clone for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
impl Clone for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
Source§fn clone(&self) -> GoogleCloudRetailV2SearchRequestQueryExpansionSpec
fn clone(&self) -> GoogleCloudRetailV2SearchRequestQueryExpansionSpec
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
impl Default for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
Source§fn default() -> GoogleCloudRetailV2SearchRequestQueryExpansionSpec
fn default() -> GoogleCloudRetailV2SearchRequestQueryExpansionSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
impl<'de> Deserialize<'de> for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
Auto Trait Implementations§
impl Freeze for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
impl RefUnwindSafe for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
impl Send for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
impl Sync for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
impl Unpin for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
impl UnwindSafe for GoogleCloudRetailV2SearchRequestQueryExpansionSpec
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
Mutably borrows from an owned value. Read more