pub struct RecommendClient { /* private fields */ }
Implementations§
Source§impl RecommendClient
impl RecommendClient
pub fn new(app_id: impl Into<String>, api_key: impl Into<String>) -> Self
pub fn with_custom_host( app_id: impl Into<String>, api_key: impl Into<String>, host: impl Into<String>, ) -> Self
pub fn with_base_url( app_id: impl Into<String>, api_key: impl Into<String>, base_url: impl Into<String>, ) -> Self
pub fn with_hosts( app_id: impl Into<String>, api_key: impl Into<String>, hosts: Vec<String>, ) -> Self
pub async fn get_recommendations<T: DeserializeOwned + Send + 'static>( &self, requests: Vec<RecommendRequest>, ) -> Result<RecommendResponse<T>>
pub async fn get_trending_facets( &self, requests: Vec<TrendingFacetsRequest>, ) -> Result<TrendingFacetsResponse>
Trait Implementations§
Source§impl Clone for RecommendClient
impl Clone for RecommendClient
Source§fn clone(&self) -> RecommendClient
fn clone(&self) -> RecommendClient
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 moreAuto Trait Implementations§
impl Freeze for RecommendClient
impl !RefUnwindSafe for RecommendClient
impl Send for RecommendClient
impl Sync for RecommendClient
impl Unpin for RecommendClient
impl !UnwindSafe for RecommendClient
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