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§
Sourcefn create_saved_view(
&self,
auth_: BearerToken,
request: CreateSavedViewRequest,
) -> Result<CreateSavedViewResponse, Error>
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.
Sourcefn get_saved_view(
&self,
auth_: BearerToken,
saved_view_rid: SavedViewRid,
) -> Result<GetSavedViewResponse, Error>
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.
Sourcefn batch_get_saved_views(
&self,
auth_: BearerToken,
saved_view_rids: BTreeSet<SavedViewRid>,
) -> Result<BatchGetSavedViewsResponse, Error>
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.
Sourcefn search_saved_views(
&self,
auth_: BearerToken,
request: SearchSavedViewsRequest,
) -> Result<SearchSavedViewsResponse, Error>
fn search_saved_views( &self, auth_: BearerToken, request: SearchSavedViewsRequest, ) -> Result<SearchSavedViewsResponse, Error>
Searches for saved views using a nested query expression. Supports pagination.
Sourcefn update_saved_view(
&self,
auth_: BearerToken,
saved_view_rid: SavedViewRid,
request: UpdateSavedViewRequest,
) -> Result<UpdateSavedViewResponse, Error>
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.
Sourcefn archive_saved_view(
&self,
auth_: BearerToken,
saved_view_rid: SavedViewRid,
) -> Result<(), Error>
fn archive_saved_view( &self, auth_: BearerToken, saved_view_rid: SavedViewRid, ) -> Result<(), Error>
Archives the specified saved view. Archived views are hidden from search.
Sourcefn unarchive_saved_view(
&self,
auth_: BearerToken,
saved_view_rid: SavedViewRid,
) -> Result<(), Error>
fn unarchive_saved_view( &self, auth_: BearerToken, saved_view_rid: SavedViewRid, ) -> Result<(), Error>
Restores archived saved view, making them discoverable in search again.