pub struct AdminInfo {
pub actor_id: String,
pub proc_id: String,
pub host: String,
pub url: String,
}Expand description
Self-identification payload returned by GET /v1/admin.
Construct via AdminInfo::new. AI-1, AI-2, AI-3 are live
invariants. The relationship between host and url is a
constructor guarantee — AdminInfo::new() rejects URLs with no
host, so host always derives from url at construction.
Fields§
§actor_id: StringStringified ActorId of the MeshAdminAgent.
proc_id: StringStringified ProcId of the proc hosting MeshAdminAgent.
host: StringHostname the admin HTTP server bound on (derived from url).
url: StringFull admin URL (e.g. "https://myhost.facebook.com:1729").
Implementations§
Source§impl AdminInfo
impl AdminInfo
Sourcepub fn new(actor_id: String, proc_id: String, url: String) -> Result<Self>
pub fn new(actor_id: String, proc_id: String, url: String) -> Result<Self>
Construct from identity components and a full admin URL.
Parses url strictly using the url crate. Returns an error
if the URL is invalid or has no host component. host is
derived from the parsed URL — the relationship between host
and url holds by construction, not by test.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AdminInfo
impl<'de> Deserialize<'de> for AdminInfo
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 JsonSchema for AdminInfo
impl JsonSchema for AdminInfo
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AdminInfo
impl RefUnwindSafe for AdminInfo
impl Send for AdminInfo
impl Sync for AdminInfo
impl Unpin for AdminInfo
impl UnwindSafe for AdminInfo
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].