#[non_exhaustive]pub struct TileNavigationSpec {
pub tile_navigation_requested: bool,
pub applied_tiles: Vec<Tile>,
/* private fields */
}Expand description
This field specifies tile navigation related parameters.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.This field specifies whether the customer would like to request tile navigation.
applied_tiles: Vec<Tile>This optional field specifies the tiles which are already clicked in client side. While the feature works without this field set, particularly for an initial query, it is highly recommended to set this field because it can improve the quality of the search response and removes possible duplicate tiles.
NOTE: This field is not being used for filtering search products. Client side should also put all the applied tiles in SearchRequest.filter.
Implementations§
pub fn new() -> Self
Sets the value of tile_navigation_requested.
§Example
ⓘ
let x = TileNavigationSpec::new().set_tile_navigation_requested(true);Sourcepub fn set_applied_tiles<T, V>(self, v: T) -> Self
pub fn set_applied_tiles<T, V>(self, v: T) -> Self
Sets the value of applied_tiles.
§Example
ⓘ
use google_cloud_retail_v2::model::Tile;
let x = TileNavigationSpec::new()
.set_applied_tiles([
Tile::default()/* use setters */,
Tile::default()/* use (different) setters */,
]);Trait Implementations§
Source§fn clone(&self) -> TileNavigationSpec
fn clone(&self) -> TileNavigationSpec
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§fn default() -> TileNavigationSpec
fn default() -> TileNavigationSpec
Returns the “default value” for a type. Read more
Auto Trait Implementations§
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