pub struct ServiceView {
pub name: String,
pub state: ServiceState,
pub url: Option<String>,
pub ports: BTreeMap<String, u16>,
pub registry: Option<String>,
pub version: Option<String>,
pub upgrade_available: bool,
}Expand description
A service as seen over the wire: the stable, serde projection of an on-disk installed service plus its live status.
Fields§
§name: String§state: ServiceState§url: Option<String>The URL a user reaches the service at, if it has one.
ports: BTreeMap<String, u16>Allocated host ports (port_name -> host_port).
registry: Option<String>Registry the service came from.
version: Option<String>Installed version.
upgrade_available: boolA newer version is available in the registry.
Trait Implementations§
Source§impl Clone for ServiceView
impl Clone for ServiceView
Source§fn clone(&self) -> ServiceView
fn clone(&self) -> ServiceView
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 ServiceView
impl Debug for ServiceView
Source§impl<'de> Deserialize<'de> for ServiceView
impl<'de> Deserialize<'de> for ServiceView
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
Auto Trait Implementations§
impl Freeze for ServiceView
impl RefUnwindSafe for ServiceView
impl Send for ServiceView
impl Sync for ServiceView
impl Unpin for ServiceView
impl UnsafeUnpin for ServiceView
impl UnwindSafe for ServiceView
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