pub struct FavoritesServiceAsyncClient<T>(/* private fields */);
Expand description
Creating favorites allows users to pin specific resources (i.e. assets, workbooks, etc.) as favorites for quick access within search pages throughout the application for themselves.
Implementations§
Source§impl<T> FavoritesServiceAsyncClient<T>where
T: AsyncClient,
impl<T> FavoritesServiceAsyncClient<T>where
T: AsyncClient,
Sourcepub async fn update_favorites(
&self,
auth_: &BearerToken,
request: &UpdateFavoritesRequest,
) -> Result<UpdateFavoritesResponse, Error>
pub async fn update_favorites( &self, auth_: &BearerToken, request: &UpdateFavoritesRequest, ) -> Result<UpdateFavoritesResponse, Error>
Update the user’s favorited resources.
Sourcepub async fn list_favorites(
&self,
auth_: &BearerToken,
request: &ListFavoritesRequest,
) -> Result<ListFavoritesResponse, Error>
pub async fn list_favorites( &self, auth_: &BearerToken, request: &ListFavoritesRequest, ) -> Result<ListFavoritesResponse, Error>
Retrieves all the user’s favorites with filtering options on the resource types to include.
Trait Implementations§
Source§impl<T> AsyncService<T> for FavoritesServiceAsyncClient<T>where
T: AsyncClient,
impl<T> AsyncService<T> for FavoritesServiceAsyncClient<T>where
T: AsyncClient,
Source§impl<T: Clone> Clone for FavoritesServiceAsyncClient<T>
impl<T: Clone> Clone for FavoritesServiceAsyncClient<T>
Source§fn clone(&self) -> FavoritesServiceAsyncClient<T>
fn clone(&self) -> FavoritesServiceAsyncClient<T>
Returns a copy 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<T> Freeze for FavoritesServiceAsyncClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for FavoritesServiceAsyncClient<T>where
T: RefUnwindSafe,
impl<T> Send for FavoritesServiceAsyncClient<T>where
T: Send,
impl<T> Sync for FavoritesServiceAsyncClient<T>where
T: Sync,
impl<T> Unpin for FavoritesServiceAsyncClient<T>where
T: Unpin,
impl<T> UnwindSafe for FavoritesServiceAsyncClient<T>where
T: UnwindSafe,
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