pub trait AsyncSandboxWorkspaceService {
// Required methods
fn get_demo_workbooks(
&self,
auth_: BearerToken,
workspace_rid: WorkspaceRid,
) -> impl Future<Output = Result<GetDemoWorkbooksResponse, Error>> + Send;
fn set_demo_workbooks(
&self,
auth_: BearerToken,
workspace_rid: WorkspaceRid,
request: SetDemoWorkbooksRequest,
) -> impl Future<Output = Result<(), Error>> + Send;
fn add_demo_workbooks(
&self,
auth_: BearerToken,
workspace_rid: WorkspaceRid,
request: AddDemoWorkbooksRequest,
) -> impl Future<Output = Result<(), Error>> + Send;
}Expand description
Service for managing demo workbooks in sandbox workspaces. All endpoints validate that the provided workspace has the human-readable ID “sandbox”.
Required Methods§
Sourcefn get_demo_workbooks(
&self,
auth_: BearerToken,
workspace_rid: WorkspaceRid,
) -> impl Future<Output = Result<GetDemoWorkbooksResponse, Error>> + Send
fn get_demo_workbooks( &self, auth_: BearerToken, workspace_rid: WorkspaceRid, ) -> impl Future<Output = Result<GetDemoWorkbooksResponse, Error>> + Send
Returns the list of demo workbook RIDs for the given sandbox workspace.
Sourcefn set_demo_workbooks(
&self,
auth_: BearerToken,
workspace_rid: WorkspaceRid,
request: SetDemoWorkbooksRequest,
) -> impl Future<Output = Result<(), Error>> + Send
fn set_demo_workbooks( &self, auth_: BearerToken, workspace_rid: WorkspaceRid, request: SetDemoWorkbooksRequest, ) -> impl Future<Output = Result<(), Error>> + Send
Sets the list of demo workbook RIDs for the given sandbox workspace, replacing any existing entries.
Sourcefn add_demo_workbooks(
&self,
auth_: BearerToken,
workspace_rid: WorkspaceRid,
request: AddDemoWorkbooksRequest,
) -> impl Future<Output = Result<(), Error>> + Send
fn add_demo_workbooks( &self, auth_: BearerToken, workspace_rid: WorkspaceRid, request: AddDemoWorkbooksRequest, ) -> impl Future<Output = Result<(), Error>> + Send
Appends workbooks to the existing demo workbook list. If archiveOnLabelConflict is true, existing workbooks with an exact label-set match are archived along with all related resources instead of raising an error. The cascade performs a full graph traversal: starting from the workbook’s data scope (asset RIDs or run RIDs), it alternates between discovering runs linked to assets and assets linked to runs until convergence. All discovered assets, runs, datasets (from both asset and run data scopes), and events (from snapshot refs and from all discovered assets) are then archived. This ensures no orphaned resources remain when demo workbooks are replaced. Partial (subset/superset) label conflicts always raise an error.
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.