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 get_favorites_list(
&self,
auth_: &BearerToken,
workspace_rid: &WorkspaceRid,
resource_types: &BTreeSet<ResourceType>,
) -> Result<FavoritesListResponse, Error>
pub async fn get_favorites_list( &self, auth_: &BearerToken, workspace_rid: &WorkspaceRid, resource_types: &BTreeSet<ResourceType>, ) -> Result<FavoritesListResponse, Error>
Retrieves the favorites list for the current user in the specified workspace.
Sourcepub async fn set_favorites_list(
&self,
auth_: &BearerToken,
workspace_rid: &WorkspaceRid,
request: &SetFavoritesListRequest,
) -> Result<FavoritesListResponse, Error>
pub async fn set_favorites_list( &self, auth_: &BearerToken, workspace_rid: &WorkspaceRid, request: &SetFavoritesListRequest, ) -> Result<FavoritesListResponse, Error>
Overwrites the favorites list for the current user in the specified workspace.
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 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<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request