pub struct RecommendRequest {
pub index_name: String,
pub model: Model,
pub object_id: Option<String>,
pub threshold: i32,
pub max_recommendations: Option<u32>,
pub facet_name: Option<String>,
pub query_parameters: Option<Value>,
}
Fields§
§index_name: String
§model: Model
§object_id: Option<String>
§threshold: i32
§max_recommendations: Option<u32>
§facet_name: Option<String>
§query_parameters: Option<Value>
Implementations§
Trait Implementations§
Source§impl Clone for RecommendRequest
impl Clone for RecommendRequest
Source§fn clone(&self) -> RecommendRequest
fn clone(&self) -> RecommendRequest
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 RecommendRequest
impl Debug for RecommendRequest
Source§impl<'de> Deserialize<'de> for RecommendRequest
impl<'de> Deserialize<'de> for RecommendRequest
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
Auto Trait Implementations§
impl Freeze for RecommendRequest
impl RefUnwindSafe for RecommendRequest
impl Send for RecommendRequest
impl Sync for RecommendRequest
impl Unpin for RecommendRequest
impl UnwindSafe for RecommendRequest
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