#[non_exhaustive]pub struct Service {
pub id: Option<String>,
pub name: Option<String>,
pub service: Option<String>,
pub pod: Option<String>,
pub host: Option<Host>,
pub weave: Option<WeaveInfo>,
pub https: Option<Vec<Http>>,
pub tcps: Option<Vec<Tcp>>,
pub monitorings: Option<Vec<Monitoring>>,
pub healthcheck: Option<Healthcheck>,
}
Expand description
Service view
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: Option<String>
Service unique ID.
name: Option<String>
Container / process name.
service: Option<String>
Service name.
pod: Option<String>
Pod for this service.
host: Option<Host>
Host info.
weave: Option<WeaveInfo>
Weave info.
https: Option<Vec<Http>>
HTTP port exposed.
tcps: Option<Vec<Tcp>>
TCP port to expose on load balancer.
monitorings: Option<Vec<Monitoring>>
TCP internal ports
healthcheck: Option<Healthcheck>
Status info
Implementations§
Source§impl Service
impl Service
Sourcepub fn monitorings(&self) -> Option<&[Monitoring]>
pub fn monitorings(&self) -> Option<&[Monitoring]>
TCP internal ports
Sourcepub fn healthcheck(&self) -> Option<&Healthcheck>
pub fn healthcheck(&self) -> Option<&Healthcheck>
Status info
Trait Implementations§
impl StructuralPartialEq for Service
Auto Trait Implementations§
impl Freeze for Service
impl RefUnwindSafe for Service
impl Send for Service
impl Sync for Service
impl Unpin for Service
impl UnwindSafe for Service
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