pub struct ResultLabels {
pub display_name: Option<String>,
pub label_with_op: Option<String>,
pub name: Option<String>,
}Expand description
Refinement label associated with a custom search result.
This type is not used in any activity, and only used as part of another schema.
Fields§
§display_name: Option<String>The display name of a refinement label. This is the name you should display in your user interface.
label_with_op: Option<String>Refinement label and the associated refinement operation.
name: Option<String>The name of a refinement label, which you can use to refine searches. Don’t display this in your user interface; instead, use displayName.
Trait Implementations§
Source§impl Clone for ResultLabels
impl Clone for ResultLabels
Source§fn clone(&self) -> ResultLabels
fn clone(&self) -> ResultLabels
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 ResultLabels
impl Debug for ResultLabels
Source§impl Default for ResultLabels
impl Default for ResultLabels
Source§fn default() -> ResultLabels
fn default() -> ResultLabels
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResultLabels
impl<'de> Deserialize<'de> for ResultLabels
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
Source§impl Serialize for ResultLabels
impl Serialize for ResultLabels
impl NestedType for ResultLabels
impl Part for ResultLabels
Auto Trait Implementations§
impl Freeze for ResultLabels
impl RefUnwindSafe for ResultLabels
impl Send for ResultLabels
impl Sync for ResultLabels
impl Unpin for ResultLabels
impl UnwindSafe for ResultLabels
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
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>
Converts
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>
Converts
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