Trait AsyncWorkspaceService

Source
pub trait AsyncWorkspaceService {
    // Required method
    fn get_workspaces(
        &self,
        auth_: BearerToken,
    ) -> impl Future<Output = Result<BTreeSet<Workspace>, Error>> + Send;
}
Expand description

This service provides information about workspaces. Workspaces provide access control boundaries. All resources in Nominal live within a workspace.

Required Methods§

Source

fn get_workspaces( &self, auth_: BearerToken, ) -> impl Future<Output = Result<BTreeSet<Workspace>, Error>> + Send

Gets all workspaces that the requesting user belongs to.

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§