pub struct WorkspaceSummary {
pub name: String,
pub root: String,
pub sources: Vec<Source>,
pub health: WorkspaceHealth,
pub agent_count: usize,
pub config: RepoProviderConfig,
pub display_name: Option<String>,
pub source_specs: Vec<WorkspaceSourceSpec>,
pub providers: Vec<ProviderInfo>,
pub default_provider: Option<String>,
pub status: Option<WorkspaceStatusInfo>,
}Expand description
A workspace summary (no agents) for GET /api/workspaces.
The tail fields are populated by the k8s config plane (from Workspace CRs)
and skipped for the local backend, so local responses are byte-for-byte
unchanged.
Fields§
§name: StringRegistry name.
root: StringWorkspace root.
sources: Vec<Source>The source checkouts under the workspace root (1..N).
health: WorkspaceHealthCaliband health.
agent_count: usizeNumber of known agents.
config: RepoProviderConfigProvider/environment config for this workspace.
display_name: Option<String>Human-friendly label (k8s config plane).
source_specs: Vec<WorkspaceSourceSpec>The workspace’s configured source specs (k8s config plane).
sources above is the discovered view — name and path only — because
that is all a local checkout has. A k8s workspace’s sources come from a
Workspace CR and additionally carry the git remote and ref, and the
config editor needs those to round-trip an edit: without them an
operator editing a workspace would face blank remote fields and have to
retype every one from memory. Empty for the local backend, so local
responses are unchanged.
providers: Vec<ProviderInfo>Named providers agents can bind to (k8s config plane).
default_provider: Option<String>Provider bound when an agent requests none (k8s config plane).
status: Option<WorkspaceStatusInfo>Reconciliation status (k8s config plane); absent for local.
Trait Implementations§
Source§impl Clone for WorkspaceSummary
impl Clone for WorkspaceSummary
Source§fn clone(&self) -> WorkspaceSummary
fn clone(&self) -> WorkspaceSummary
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 WorkspaceSummary
impl Debug for WorkspaceSummary
Source§impl<'de> Deserialize<'de> for WorkspaceSummary
impl<'de> Deserialize<'de> for WorkspaceSummary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WorkspaceSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for WorkspaceSummary
impl PartialEq for WorkspaceSummary
Source§fn eq(&self, other: &WorkspaceSummary) -> bool
fn eq(&self, other: &WorkspaceSummary) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for WorkspaceSummary
impl Serialize for WorkspaceSummary
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for WorkspaceSummary
impl StructuralPartialEq for WorkspaceSummary
Auto Trait Implementations§
impl Freeze for WorkspaceSummary
impl RefUnwindSafe for WorkspaceSummary
impl Send for WorkspaceSummary
impl Sync for WorkspaceSummary
impl Unpin for WorkspaceSummary
impl UnsafeUnpin for WorkspaceSummary
impl UnwindSafe for WorkspaceSummary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more