AsyncChecklistService

Trait AsyncChecklistService 

Source
pub trait AsyncChecklistService {
Show 15 methods // Required methods fn create( &self, auth_: BearerToken, request: CreateChecklistRequest, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send; fn commit( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, request: CommitChecklistRequest, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send; fn save_working_state( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, request: SaveChecklistRequest, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send; fn merge_to_main( &self, auth_: BearerToken, checklist_rid: ChecklistRid, request: MergeToMainRequest, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send; fn update_data_source_ref_names( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, ref_name_updates: BTreeMap<DataSourceRefName, DataSourceRefName>, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send; fn update_metadata( &self, auth_: BearerToken, rid: ChecklistRid, request: UpdateChecklistMetadataRequest, ) -> impl Future<Output = Result<ChecklistMetadata, Error>> + Send; fn get( &self, auth_: BearerToken, rid: ChecklistRid, branch: Option<BranchName>, commit: Option<CommitId>, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send; fn batch_get( &self, auth_: BearerToken, checklist_refs: BTreeSet<PinnedChecklistRef>, ) -> impl Future<Output = Result<BTreeSet<VersionedChecklist>, Error>> + Send; fn batch_get_metadata( &self, auth_: BearerToken, request: BatchGetChecklistMetadataRequest, ) -> impl Future<Output = Result<BatchGetChecklistMetadataResponse, Error>> + Send; fn search( &self, auth_: BearerToken, request: SearchChecklistsRequest, ) -> impl Future<Output = Result<VersionedChecklistPage, Error>> + Send; fn archive( &self, auth_: BearerToken, request: ArchiveChecklistsRequest, ) -> impl Future<Output = Result<(), Error>> + Send; fn unarchive( &self, auth_: BearerToken, request: UnarchiveChecklistsRequest, ) -> impl Future<Output = Result<(), Error>> + Send; fn get_check( &self, auth_: BearerToken, rid: CheckRid, ) -> impl Future<Output = Result<Check, Error>> + Send; fn batch_get_checks( &self, auth_: BearerToken, rids: BTreeSet<CheckRid>, ) -> impl Future<Output = Result<BTreeSet<Check>, Error>> + Send; fn get_all_labels_and_properties( &self, auth_: BearerToken, workspaces: BTreeSet<WorkspaceRid>, ) -> impl Future<Output = Result<GetAllLabelsAndPropertiesResponse, Error>> + Send;
}
Expand description

The Checklist Service is responsible for managing checklists and checks. A checklist is a collection of checks that can be executed against a set of data sources.

Required Methods§

Source

fn create( &self, auth_: BearerToken, request: CreateChecklistRequest, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send

Creates a new checklist with the provided checks.

Source

fn commit( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, request: CommitChecklistRequest, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send

Creates a permanent commit with a commit message. Throws if the checklist or branch doesn’t exist. Throws if the latest commit doesn’t match the provided id. Throws if you commit to an archived checklist.

Source

fn save_working_state( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, request: SaveChecklistRequest, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send

Creates a commit that may be compacted, e.g cleaned up and not exist anymore. Throws if the checklist or branch doesn’t exist. Throws if the latest commit doesn’t match the provided id. Throws if you save to an archived checklist.

Source

fn merge_to_main( &self, auth_: BearerToken, checklist_rid: ChecklistRid, request: MergeToMainRequest, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send

Merges the given branch to the “main” branch. Throws if the checklist or branch doesn’t exist. Throws if the latest commit doesn’t match the provided id. Throws if you merge with an archived checklist.

Source

fn update_data_source_ref_names( &self, auth_: BearerToken, checklist_rid: ChecklistRid, branch: Option<BranchName>, ref_name_updates: BTreeMap<DataSourceRefName, DataSourceRefName>, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send

Updates the data source ref names for all checks within a checklist. Throws if the checklist doesn’t exist.

Source

fn update_metadata( &self, auth_: BearerToken, rid: ChecklistRid, request: UpdateChecklistMetadataRequest, ) -> impl Future<Output = Result<ChecklistMetadata, Error>> + Send

Updates the metadata of a checklist.

Source

fn get( &self, auth_: BearerToken, rid: ChecklistRid, branch: Option<BranchName>, commit: Option<CommitId>, ) -> impl Future<Output = Result<VersionedChecklist, Error>> + Send

Specify at most one of (branch, commit). If neither is specified, branch = “main” is the default.

Source

fn batch_get( &self, auth_: BearerToken, checklist_refs: BTreeSet<PinnedChecklistRef>, ) -> impl Future<Output = Result<BTreeSet<VersionedChecklist>, Error>> + Send

Returns the pinned commit for each provided checklist reference.

Source

fn batch_get_metadata( &self, auth_: BearerToken, request: BatchGetChecklistMetadataRequest, ) -> impl Future<Output = Result<BatchGetChecklistMetadataResponse, Error>> + Send

Returns the metadata for each provided checklist.

Source

fn search( &self, auth_: BearerToken, request: SearchChecklistsRequest, ) -> impl Future<Output = Result<VersionedChecklistPage, Error>> + Send

Results will be the latest commit on main for each checklist.

Source

fn archive( &self, auth_: BearerToken, request: ArchiveChecklistsRequest, ) -> impl Future<Output = Result<(), Error>> + Send

Archives the provided checklists.

Source

fn unarchive( &self, auth_: BearerToken, request: UnarchiveChecklistsRequest, ) -> impl Future<Output = Result<(), Error>> + Send

Unarchives the provided checklists.

Source

fn get_check( &self, auth_: BearerToken, rid: CheckRid, ) -> impl Future<Output = Result<Check, Error>> + Send

Returns the check with the given rid.

Source

fn batch_get_checks( &self, auth_: BearerToken, rids: BTreeSet<CheckRid>, ) -> impl Future<Output = Result<BTreeSet<Check>, Error>> + Send

Returns the checks with the given rids.

Source

fn get_all_labels_and_properties( &self, auth_: BearerToken, workspaces: BTreeSet<WorkspaceRid>, ) -> impl Future<Output = Result<GetAllLabelsAndPropertiesResponse, Error>> + Send

Returns all labels and properties.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§