pub struct AapView {
pub detected: bool,
pub root: Option<String>,
pub source: Option<String>,
pub mode: String,
pub pinned_version: Option<String>,
pub running_version: String,
pub drift: String,
pub drifted: bool,
pub indexed_roots: Vec<String>,
pub presets: AapPresetsView,
}Expand description
AAP operator panel projection (008 US1). Reports the sibling-AAP detection state, the integration mode, the embed-pin drift comparison (pinned vs the running crate version), any AAP-indexed roots, and the integration presets.
Not-detected is a first-class clean state: detected = false, root = null,
mode = "none", drift = "pin_unknown" (the panel shows an empty-state, not
an error — spec edge case + SC-002). Detection is read-only against the
sibling checkout; no real AAP checkout is mutated.
Fields§
§detected: boolWhether a sibling AAP checkout was detected.
root: Option<String>The resolved AAP root path when detected; null otherwise.
source: Option<String>How the root was resolved ("env" | "sibling"); null when not detected.
mode: StringIntegration mode label: "embed" | "mcp_url" | "both" | "none".
pinned_version: Option<String>AAP’s pinned symforge version from its Cargo.lock; null when unknown
(lock missing/unparseable/no symforge package).
running_version: StringThe running SymForge crate version (always present).
drift: StringDrift comparison label: "drift" | "match" | "pin_unknown".
drifted: boolWhether the pin has drifted from the running crate (the panel warns iff true).
indexed_roots: Vec<String>AAP-indexed project roots, when discoverable. Empty when none are known (no false data — the panel shows an empty list, never fabricated roots).
presets: AapPresetsViewOne-click integration presets (embed snippet always; serve-URL when active).
Implementations§
Source§impl AapView
impl AapView
Sourcepub fn from_runtime(runtime: &ServerRuntime) -> Self
pub fn from_runtime(runtime: &ServerRuntime) -> Self
Build the AAP panel view from the running server’s detection + serve state.
Resolves the sibling AAP checkout (read-only), compares its embed pin to
the running crate, classifies the integration mode, and assembles the
presets. The serve-URL preset uses a redacted <API_KEY> placeholder when
a bootstrap key is configured (P2-5), never the real secret.
Sourcepub fn from_parts(
detection: &AapDetection,
serve_active: bool,
bearer: Option<&str>,
) -> Self
pub fn from_parts( detection: &AapDetection, serve_active: bool, bearer: Option<&str>, ) -> Self
Build from an explicit detection result, serve-active flag, and Bearer key (test seam: fixtures drive detection + serve state without depending on the host’s real sibling layout or a running serve).
serve_active decouples the serve path from detection: the integration
mode is both only when AAP is detected AND serve is active, and the
serve-URL preset is offered under the same condition (US2 / SC-003). The
embed snippet is host-independent and always present.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AapView
impl RefUnwindSafe for AapView
impl Send for AapView
impl Sync for AapView
impl Unpin for AapView
impl UnsafeUnpin for AapView
impl UnwindSafe for AapView
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<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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