pub struct ViewerSnapshot {
pub revision: u64,
pub generated_at: String,
pub server_time_ms: i64,
pub workspaces: Vec<ViewerWorkspace>,
pub sessions: Vec<ViewerSession>,
pub profiles: Vec<ViewerProfile>,
pub targets: Vec<ViewerTarget>,
pub bundles: Vec<ViewerBundle>,
pub review_config: ViewerReviewConfig,
pub subagents_enabled: bool,
pub capacity: Vec<ViewerTargetCapacity>,
pub launch_failures: Vec<ViewerLaunchFailure>,
}Fields§
§revision: u64§generated_at: String§server_time_ms: i64Unix time in milliseconds, refreshed when serving the projection. Clients use this as the clock for live activity cards.
workspaces: Vec<ViewerWorkspace>§sessions: Vec<ViewerSession>§profiles: Vec<ViewerProfile>§targets: Vec<ViewerTarget>§bundles: Vec<ViewerBundle>§review_config: ViewerReviewConfigThe bounded part of [review] needed to report whether review is
armed. Reviewer model and effort remain controller-private.
subagents_enabled: boolThe global [subagents] enabled setting. The new-session form uses it
as the default for its per-session sub-agent checkbox.
capacity: Vec<ViewerTargetCapacity>One entry per host or fleet that can be probed. Empty until the phone server’s capacity poller has published a reading.
launch_failures: Vec<ViewerLaunchFailure>Recent failed launches, independent of provisional session rollback.
Implementations§
Source§impl ViewerSnapshot
impl ViewerSnapshot
Sourcepub fn from_config_state(
config: &Config,
state: &AppState,
revision: u64,
) -> Self
pub fn from_config_state( config: &Config, state: &AppState, revision: u64, ) -> Self
Build the public projection. In particular, this never copies profile homes/environment, SSH hosts/keys, container environment, AWS details, concrete resource locators, native session IDs, or raw error strings.
Trait Implementations§
Source§impl Clone for ViewerSnapshot
impl Clone for ViewerSnapshot
Source§fn clone(&self) -> ViewerSnapshot
fn clone(&self) -> ViewerSnapshot
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 ViewerSnapshot
impl Debug for ViewerSnapshot
Source§impl Default for ViewerSnapshot
impl Default for ViewerSnapshot
Source§fn default() -> ViewerSnapshot
fn default() -> ViewerSnapshot
Source§impl<'de> Deserialize<'de> for ViewerSnapshot
impl<'de> Deserialize<'de> for ViewerSnapshot
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 ViewerSnapshot
impl PartialEq for ViewerSnapshot
Source§impl Serialize for ViewerSnapshot
impl Serialize for ViewerSnapshot
impl StructuralPartialEq for ViewerSnapshot
Auto Trait Implementations§
impl Freeze for ViewerSnapshot
impl RefUnwindSafe for ViewerSnapshot
impl Send for ViewerSnapshot
impl Sync for ViewerSnapshot
impl Unpin for ViewerSnapshot
impl UnsafeUnpin for ViewerSnapshot
impl UnwindSafe for ViewerSnapshot
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
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>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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