pub struct Capabilities {
pub admin: bool,
pub async_workspace_ops: bool,
}Expand description
Backend capability signal for the dashboard (GET /api/capabilities).
Fixed for the process lifetime — the dashboard fetches it once and gates its admin/registry controls on it, so it never offers operations the active backend can’t serve. (#99)
Fields§
§admin: boolWhether the workspace admin/config plane (add / remove / set-config) is
available. true for the local backend (registry) and, as of #142, for
k8s (a Workspace-CR editor). Only false if a backend leaves the
admin seam unwired.
async_workspace_ops: boolWhether workspace create/config completes asynchronously — the dashboard
uses this to (a) render the k8s config UI (named-provider list +
Secret-reference credentials, vs the local single-provider env-var form)
and (b) treat a save as accepted, reconciling rather than done.
false for local, true for k8s. (#143)
Trait Implementations§
Source§impl Clone for Capabilities
impl Clone for Capabilities
Source§fn clone(&self) -> Capabilities
fn clone(&self) -> Capabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for Capabilities
impl Debug for Capabilities
Source§impl<'de> Deserialize<'de> for Capabilities
impl<'de> Deserialize<'de> for Capabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for Capabilities
impl PartialEq for Capabilities
Source§fn eq(&self, other: &Capabilities) -> bool
fn eq(&self, other: &Capabilities) -> bool
self and other values to be equal, and is used by ==.