#[non_exhaustive]pub struct AssistQueryParameters {
pub documents_metadata_filters: HashMap<String, String>,
/* private fields */
}Available on crate features
conversations or participants only.Expand description
Represents the parameters of human assist query.
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.documents_metadata_filters: HashMap<String, String>Key-value filters on the metadata of documents returned by article suggestion. If specified, article suggestion only returns suggested documents that match all filters in their Document.metadata. Multiple values for a metadata key should be concatenated by comma. For example, filters to match all documents that have ‘US’ or ‘CA’ in their market metadata values and ‘agent’ in their user metadata values will be
documents_metadata_filters {
key: "market"
value: "US,CA"
}
documents_metadata_filters {
key: "user"
value: "agent"
}Implementations§
Source§impl AssistQueryParameters
impl AssistQueryParameters
pub fn new() -> Self
Sourcepub fn set_documents_metadata_filters<T, K, V>(self, v: T) -> Self
pub fn set_documents_metadata_filters<T, K, V>(self, v: T) -> Self
Sets the value of documents_metadata_filters.
§Example
ⓘ
let x = AssistQueryParameters::new().set_documents_metadata_filters([
("key0", "abc"),
("key1", "xyz"),
]);Trait Implementations§
Source§impl Clone for AssistQueryParameters
impl Clone for AssistQueryParameters
Source§fn clone(&self) -> AssistQueryParameters
fn clone(&self) -> AssistQueryParameters
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 AssistQueryParameters
impl Debug for AssistQueryParameters
Source§impl Default for AssistQueryParameters
impl Default for AssistQueryParameters
Source§fn default() -> AssistQueryParameters
fn default() -> AssistQueryParameters
Returns the “default value” for a type. Read more
Source§impl Message for AssistQueryParameters
impl Message for AssistQueryParameters
Source§impl PartialEq for AssistQueryParameters
impl PartialEq for AssistQueryParameters
impl StructuralPartialEq for AssistQueryParameters
Auto Trait Implementations§
impl Freeze for AssistQueryParameters
impl RefUnwindSafe for AssistQueryParameters
impl Send for AssistQueryParameters
impl Sync for AssistQueryParameters
impl Unpin for AssistQueryParameters
impl UnwindSafe for AssistQueryParameters
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