pub struct ServiceRegistryEntry {
pub name: String,
pub url: String,
pub port: u16,
pub resources: Vec<String>,
pub protocols: Vec<String>,
pub status: ServiceStatus,
pub registered_at: String,
pub last_heartbeat: String,
}Expand description
Entry stored in Redis service registry. Services register on startup and update their heartbeat periodically.
Fields§
§name: StringService name (matches key in workspace config).
url: StringBase URL for this service (e.g. “http://localhost:3001”).
port: u16HTTP port.
resources: Vec<String>Resource names this service exposes.
protocols: Vec<String>Enabled protocols (rest, graphql, grpc).
status: ServiceStatusCurrent service status.
registered_at: StringISO 8601 timestamp of initial registration.
last_heartbeat: StringISO 8601 timestamp of last heartbeat.
Trait Implementations§
Source§impl Clone for ServiceRegistryEntry
impl Clone for ServiceRegistryEntry
Source§fn clone(&self) -> ServiceRegistryEntry
fn clone(&self) -> ServiceRegistryEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ServiceRegistryEntry
impl Debug for ServiceRegistryEntry
Source§impl<'de> Deserialize<'de> for ServiceRegistryEntry
impl<'de> Deserialize<'de> for ServiceRegistryEntry
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 ServiceRegistryEntry
impl PartialEq for ServiceRegistryEntry
Source§impl Serialize for ServiceRegistryEntry
impl Serialize for ServiceRegistryEntry
impl StructuralPartialEq for ServiceRegistryEntry
Auto Trait Implementations§
impl Freeze for ServiceRegistryEntry
impl RefUnwindSafe for ServiceRegistryEntry
impl Send for ServiceRegistryEntry
impl Sync for ServiceRegistryEntry
impl Unpin for ServiceRegistryEntry
impl UnsafeUnpin for ServiceRegistryEntry
impl UnwindSafe for ServiceRegistryEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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