pub struct AdminState {
pub pool: Pool,
pub seats: Option<u32>,
pub org_label: Option<String>,
pub started_at: Instant,
pub providers: Vec<ProviderStatus>,
pub routing_enabled: bool,
pub routing_aliases: BTreeMap<String, String>,
pub reference_model: Option<String>,
pub local_shadow_rate: f64,
pub mcp_servers: Vec<ResolvedMcpServer>,
}Expand description
Shared state of the admin router: the store pool + deployment parameters (the config/identity slice the status card and dashboard need).
Fields§
§pool: Pool§seats: Option<u32>Seats for the projection ([gateway_server].seats).
org_label: Option<String>[gateway_server].org_label — branding for the dashboard header.
started_at: InstantProcess start, for the status card’s uptime.
providers: Vec<ProviderStatus>Resolved provider registry snapshot (id/shape/credential presence).
routing_enabled: bool[proxy.routing].enabled.
routing_aliases: BTreeMap<String, String>[proxy.routing].aliases — the curated model catalog served as
GET /v1/models on the proxy port (enterprise#63).
reference_model: Option<String>[proxy.baseline].reference_model.
local_shadow_rate: f64Effective local shadow rate (USD per MTok).
mcp_servers: Vec<ResolvedMcpServer>Resolved [[gateway_server.mcp_servers]] registry snapshot (GL#104) —
the console’s “Tools” section lists these alongside live inventory.
Trait Implementations§
Source§impl Clone for AdminState
impl Clone for AdminState
Source§fn clone(&self) -> AdminState
fn clone(&self) -> AdminState
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for AdminState
impl !UnwindSafe for AdminState
impl Freeze for AdminState
impl Send for AdminState
impl Sync for AdminState
impl Unpin for AdminState
impl UnsafeUnpin for AdminState
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<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>
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 more