pub struct SlimNodeInventory {Show 18 fields
pub node_id: NodeId,
pub enabled_providers: Vec<AgentId>,
pub provider_runtime_statuses: ProviderRuntimeStatuses,
pub provider_contracts: Vec<ProviderContractSupport>,
pub provider_adapter_contracts: Vec<ProviderAdapterContractSupport>,
pub workspaces: BTreeMap<WorkspaceId, SlimWorkspace>,
pub workspace_count: usize,
pub workspaces_truncated: bool,
pub session_count: usize,
pub sessions_truncated: bool,
pub managed_sessions: Vec<SlimManagedSessionRecord>,
pub managed_session_count: usize,
pub managed_sessions_truncated: bool,
pub retired_count: usize,
pub managed_worktrees: Vec<ManagedWorktreeLeaseSnapshot>,
pub managed_worktree_count: usize,
pub managed_worktrees_truncated: bool,
pub launch_inventory: Option<LaunchInventory>,
}Fields§
§node_id: NodeId§enabled_providers: Vec<AgentId>§provider_runtime_statuses: ProviderRuntimeStatuses§provider_contracts: Vec<ProviderContractSupport>§provider_adapter_contracts: Vec<ProviderAdapterContractSupport>§workspaces: BTreeMap<WorkspaceId, SlimWorkspace>§workspace_count: usize§workspaces_truncated: bool§session_count: usize§sessions_truncated: bool§managed_sessions: Vec<SlimManagedSessionRecord>§managed_session_count: usize§managed_sessions_truncated: bool§retired_count: usizeLifetime count of managed session records the node’s own retention
sweep has retired (NodeShared::retired_records_total, gate4agent-
node). Additive and informational only – unlike managed_session_ count/managed_sessions_truncated it is not cross-checked against
managed_sessions (retired records are gone from that list by
definition, not merely paged out of it). 0 on any snapshot source
that does not yet carry the node’s own counter through.
managed_worktrees: Vec<ManagedWorktreeLeaseSnapshot>§managed_worktree_count: usize§managed_worktrees_truncated: bool§launch_inventory: Option<LaunchInventory>Implementations§
Source§impl SlimNodeInventory
impl SlimNodeInventory
pub fn from_snapshot(snapshot: &NodeSnapshot) -> Self
pub fn from_c2_snapshot(snapshot: &C2NodeSnapshot) -> Self
Trait Implementations§
Source§impl Clone for SlimNodeInventory
impl Clone for SlimNodeInventory
Source§impl Debug for SlimNodeInventory
impl Debug for SlimNodeInventory
Source§impl<'de> Deserialize<'de> for SlimNodeInventory
impl<'de> Deserialize<'de> for SlimNodeInventory
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 SlimNodeInventory
Source§impl PartialEq for SlimNodeInventory
impl PartialEq for SlimNodeInventory
Source§impl Serialize for SlimNodeInventory
impl Serialize for SlimNodeInventory
impl StructuralPartialEq for SlimNodeInventory
Auto Trait Implementations§
impl Freeze for SlimNodeInventory
impl RefUnwindSafe for SlimNodeInventory
impl Send for SlimNodeInventory
impl Sync for SlimNodeInventory
impl Unpin for SlimNodeInventory
impl UnsafeUnpin for SlimNodeInventory
impl UnwindSafe for SlimNodeInventory
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