#[non_exhaustive]pub struct QuickResponseQueryFieldBuilder { /* private fields */ }Expand description
A builder for QuickResponseQueryField.
Implementations§
source§impl QuickResponseQueryFieldBuilder
impl QuickResponseQueryFieldBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the attribute to query the quick responses by.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the attribute to query the quick responses by.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the attribute to query the quick responses by.
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values.
To override the contents of this collection use set_values.
The values of the attribute to query the quick responses by.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
The values of the attribute to query the quick responses by.
sourcepub fn get_values(&self) -> &Option<Vec<String>>
pub fn get_values(&self) -> &Option<Vec<String>>
The values of the attribute to query the quick responses by.
sourcepub fn operator(self, input: QuickResponseQueryOperator) -> Self
pub fn operator(self, input: QuickResponseQueryOperator) -> Self
The operator to use for matching attribute field values in the query.
This field is required.sourcepub fn set_operator(self, input: Option<QuickResponseQueryOperator>) -> Self
pub fn set_operator(self, input: Option<QuickResponseQueryOperator>) -> Self
The operator to use for matching attribute field values in the query.
sourcepub fn get_operator(&self) -> &Option<QuickResponseQueryOperator>
pub fn get_operator(&self) -> &Option<QuickResponseQueryOperator>
The operator to use for matching attribute field values in the query.
sourcepub fn allow_fuzziness(self, input: bool) -> Self
pub fn allow_fuzziness(self, input: bool) -> Self
Whether the query expects only exact matches on the attribute field values. The results of the query will only include exact matches if this parameter is set to false.
sourcepub fn set_allow_fuzziness(self, input: Option<bool>) -> Self
pub fn set_allow_fuzziness(self, input: Option<bool>) -> Self
Whether the query expects only exact matches on the attribute field values. The results of the query will only include exact matches if this parameter is set to false.
sourcepub fn get_allow_fuzziness(&self) -> &Option<bool>
pub fn get_allow_fuzziness(&self) -> &Option<bool>
Whether the query expects only exact matches on the attribute field values. The results of the query will only include exact matches if this parameter is set to false.
sourcepub fn priority(self, input: Priority) -> Self
pub fn priority(self, input: Priority) -> Self
The importance of the attribute field when calculating query result relevancy scores. The value set for this parameter affects the ordering of search results.
sourcepub fn set_priority(self, input: Option<Priority>) -> Self
pub fn set_priority(self, input: Option<Priority>) -> Self
The importance of the attribute field when calculating query result relevancy scores. The value set for this parameter affects the ordering of search results.
sourcepub fn get_priority(&self) -> &Option<Priority>
pub fn get_priority(&self) -> &Option<Priority>
The importance of the attribute field when calculating query result relevancy scores. The value set for this parameter affects the ordering of search results.
sourcepub fn build(self) -> Result<QuickResponseQueryField, BuildError>
pub fn build(self) -> Result<QuickResponseQueryField, BuildError>
Consumes the builder and constructs a QuickResponseQueryField.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for QuickResponseQueryFieldBuilder
impl Clone for QuickResponseQueryFieldBuilder
source§fn clone(&self) -> QuickResponseQueryFieldBuilder
fn clone(&self) -> QuickResponseQueryFieldBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for QuickResponseQueryFieldBuilder
impl Default for QuickResponseQueryFieldBuilder
source§fn default() -> QuickResponseQueryFieldBuilder
fn default() -> QuickResponseQueryFieldBuilder
source§impl PartialEq for QuickResponseQueryFieldBuilder
impl PartialEq for QuickResponseQueryFieldBuilder
source§fn eq(&self, other: &QuickResponseQueryFieldBuilder) -> bool
fn eq(&self, other: &QuickResponseQueryFieldBuilder) -> bool
self and other values to be equal, and is used
by ==.