pub struct ViewerSnapshot {
pub revision: u64,
pub generated_at: String,
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 capacity: Vec<ViewerTargetCapacity>,
}Fields§
§revision: u64§generated_at: String§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.
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.
Implementations§
Source§impl ViewerSnapshot
impl ViewerSnapshot
Sourcepub fn from_config_state(
config: &HelConfig,
state: &HelState,
revision: u64,
) -> Self
pub fn from_config_state( config: &HelConfig, state: &HelState, 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
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 ViewerSnapshot
impl Debug for ViewerSnapshot
Source§impl Default for ViewerSnapshot
impl Default for ViewerSnapshot
Source§fn default() -> ViewerSnapshot
fn default() -> ViewerSnapshot
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
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
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>,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.