pub struct RepositoryTopology {
pub schema: String,
pub repository: RepositoryView,
pub container: ContainerView,
pub trunk: TrunkView,
pub observed_from: String,
pub worktrees: Vec<WorktreeState>,
pub branches: Vec<BranchState>,
pub diagnostics: Vec<TopologyDiagnostic>,
pub tallies: TopologyTallies,
pub valid: bool,
}Expand description
The whole topology: what worktree list, the MCP resource, the HTTP route and the
Cockpit all read.
Fields§
§schema: String§repository: RepositoryViewThe repository.
container: ContainerViewThe container every linked work tree belongs under.
trunk: TrunkViewThe trunk.
observed_from: StringThe work tree the call was answered from.
worktrees: Vec<WorktreeState>Every registered work tree, primary first.
branches: Vec<BranchState>Every local branch, by name.
diagnostics: Vec<TopologyDiagnostic>Everything wrong with the topology, work trees first, then repository-wide.
tallies: TopologyTalliesThe counts.
valid: boolNo error-level diagnostic stands.
Trait Implementations§
Source§impl Clone for RepositoryTopology
impl Clone for RepositoryTopology
Source§fn clone(&self) -> RepositoryTopology
fn clone(&self) -> RepositoryTopology
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepositoryTopology
impl Debug for RepositoryTopology
Source§impl<'de> Deserialize<'de> for RepositoryTopology
impl<'de> Deserialize<'de> for RepositoryTopology
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RepositoryTopology
Source§impl JsonSchema for RepositoryTopology
impl JsonSchema for RepositoryTopology
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for RepositoryTopology
impl PartialEq for RepositoryTopology
Source§fn eq(&self, other: &RepositoryTopology) -> bool
fn eq(&self, other: &RepositoryTopology) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RepositoryTopology
impl Serialize for RepositoryTopology
impl StructuralPartialEq for RepositoryTopology
Auto Trait Implementations§
impl Freeze for RepositoryTopology
impl RefUnwindSafe for RepositoryTopology
impl Send for RepositoryTopology
impl Sync for RepositoryTopology
impl Unpin for RepositoryTopology
impl UnsafeUnpin for RepositoryTopology
impl UnwindSafe for RepositoryTopology
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§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
Compare self to
key and return true if they are equal.