#[non_exhaustive]pub struct DisplaySpec {
pub match_highlighting_condition: MatchHighlightingCondition,
/* private fields */
}Available on crate features
assistant-service or conversational-search-service or search-service or serving-config-service only.Expand description
Specifies features for display, like match highlighting.
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.match_highlighting_condition: MatchHighlightingConditionThe condition under which match highlighting should occur.
Implementations§
Source§impl DisplaySpec
impl DisplaySpec
pub fn new() -> Self
Sourcepub fn set_match_highlighting_condition<T: Into<MatchHighlightingCondition>>(
self,
v: T,
) -> Self
pub fn set_match_highlighting_condition<T: Into<MatchHighlightingCondition>>( self, v: T, ) -> Self
Sets the value of match_highlighting_condition.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::search_request::display_spec::MatchHighlightingCondition;
let x0 = DisplaySpec::new().set_match_highlighting_condition(MatchHighlightingCondition::MatchHighlightingDisabled);
let x1 = DisplaySpec::new().set_match_highlighting_condition(MatchHighlightingCondition::MatchHighlightingEnabled);Trait Implementations§
Source§impl Clone for DisplaySpec
impl Clone for DisplaySpec
Source§fn clone(&self) -> DisplaySpec
fn clone(&self) -> DisplaySpec
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 Debug for DisplaySpec
impl Debug for DisplaySpec
Source§impl Default for DisplaySpec
impl Default for DisplaySpec
Source§fn default() -> DisplaySpec
fn default() -> DisplaySpec
Returns the “default value” for a type. Read more
Source§impl Message for DisplaySpec
impl Message for DisplaySpec
Source§impl PartialEq for DisplaySpec
impl PartialEq for DisplaySpec
impl StructuralPartialEq for DisplaySpec
Auto Trait Implementations§
impl Freeze for DisplaySpec
impl RefUnwindSafe for DisplaySpec
impl Send for DisplaySpec
impl Sync for DisplaySpec
impl Unpin for DisplaySpec
impl UnwindSafe for DisplaySpec
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