FavoritesService

Trait FavoritesService 

Source
pub trait FavoritesService {
    // Required methods
    fn get_favorites_list(
        &self,
        auth_: BearerToken,
        workspace_rid: WorkspaceRid,
        resource_types: BTreeSet<ResourceType>,
    ) -> Result<FavoritesListResponse, Error>;
    fn set_favorites_list(
        &self,
        auth_: BearerToken,
        workspace_rid: WorkspaceRid,
        request: SetFavoritesListRequest,
    ) -> Result<FavoritesListResponse, Error>;
}
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.

Required Methods§

Source

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.

Source

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.

Implementors§