SavedViewService

Trait SavedViewService 

Source
pub trait SavedViewService {
    // Required methods
    fn create_saved_view(
        &self,
        auth_: BearerToken,
        request: CreateSavedViewRequest,
    ) -> Result<CreateSavedViewResponse, Error>;
    fn get_saved_view(
        &self,
        auth_: BearerToken,
        saved_view_rid: SavedViewRid,
    ) -> Result<GetSavedViewResponse, Error>;
    fn batch_get_saved_views(
        &self,
        auth_: BearerToken,
        saved_view_rids: BTreeSet<SavedViewRid>,
    ) -> Result<BatchGetSavedViewsResponse, Error>;
    fn search_saved_views(
        &self,
        auth_: BearerToken,
        request: SearchSavedViewsRequest,
    ) -> Result<SearchSavedViewsResponse, Error>;
    fn update_saved_view(
        &self,
        auth_: BearerToken,
        saved_view_rid: SavedViewRid,
        request: UpdateSavedViewRequest,
    ) -> Result<UpdateSavedViewResponse, Error>;
    fn archive_saved_view(
        &self,
        auth_: BearerToken,
        saved_view_rid: SavedViewRid,
    ) -> Result<(), Error>;
    fn unarchive_saved_view(
        &self,
        auth_: BearerToken,
        saved_view_rid: SavedViewRid,
    ) -> Result<(), Error>;
}
Expand description

Saved Views allow users to store and reuse filter and table display configurations across assets, runs, checklists, and more. They can be favorited, archived, and shared across a workspace.

Required Methods§

Source

fn create_saved_view( &self, auth_: BearerToken, request: CreateSavedViewRequest, ) -> Result<CreateSavedViewResponse, Error>

Creates a new saved view in the given workspace. If no workspace is specified, it is created in the user’s default workspace.

Source

fn get_saved_view( &self, auth_: BearerToken, saved_view_rid: SavedViewRid, ) -> Result<GetSavedViewResponse, Error>

Fetches a saved view by RID. Throws NOT_FOUND if it does not exist.

Source

fn batch_get_saved_views( &self, auth_: BearerToken, saved_view_rids: BTreeSet<SavedViewRid>, ) -> Result<BatchGetSavedViewsResponse, Error>

Retrieves multiple saved views. Any invalid or unknown RIDs are omitted from the response.

Source

fn search_saved_views( &self, auth_: BearerToken, request: SearchSavedViewsRequest, ) -> Result<SearchSavedViewsResponse, Error>

Searches for saved views using a nested query expression. Supports pagination.

Source

fn update_saved_view( &self, auth_: BearerToken, saved_view_rid: SavedViewRid, request: UpdateSavedViewRequest, ) -> Result<UpdateSavedViewResponse, Error>

Updates metadata, search filters, or display settings for an existing saved view. Throws NOT_FOUND if the view doesn’t exist and INVALID_ARGUMENT if it is archived.

Source

fn archive_saved_view( &self, auth_: BearerToken, saved_view_rid: SavedViewRid, ) -> Result<(), Error>

Archives the specified saved view. Archived views are hidden from search.

Source

fn unarchive_saved_view( &self, auth_: BearerToken, saved_view_rid: SavedViewRid, ) -> Result<(), Error>

Restores archived saved view, making them discoverable in search again.

Implementors§