Struct k8s_openapi::api::discovery::v1::EndpointConditions
source · [−]pub struct EndpointConditions {
pub ready: Option<bool>,
pub serving: Option<bool>,
pub terminating: Option<bool>,
}
Expand description
EndpointConditions represents the current condition of an endpoint.
Fields
ready: Option<bool>
ready indicates that this endpoint is prepared to receive traffic, according to whatever system is managing the endpoint. A nil value indicates an unknown state. In most cases consumers should interpret this unknown state as ready. For compatibility reasons, ready should never be “true” for terminating endpoints.
serving: Option<bool>
serving is identical to ready except that it is set regardless of the terminating state of endpoints. This condition should be set to true for a ready endpoint that is terminating. If nil, consumers should defer to the ready condition. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
terminating: Option<bool>
terminating indicates that this endpoint is terminating. A nil value indicates an unknown state. Consumers should interpret this unknown state to mean that the endpoint is not terminating. This field can be enabled with the EndpointSliceTerminatingCondition feature gate.
Trait Implementations
sourceimpl Clone for EndpointConditions
impl Clone for EndpointConditions
sourcefn clone(&self) -> EndpointConditions
fn clone(&self) -> EndpointConditions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EndpointConditions
impl Debug for EndpointConditions
sourceimpl Default for EndpointConditions
impl Default for EndpointConditions
sourcefn default() -> EndpointConditions
fn default() -> EndpointConditions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for EndpointConditions
impl<'de> Deserialize<'de> for EndpointConditions
sourcefn 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
sourceimpl PartialEq<EndpointConditions> for EndpointConditions
impl PartialEq<EndpointConditions> for EndpointConditions
sourcefn eq(&self, other: &EndpointConditions) -> bool
fn eq(&self, other: &EndpointConditions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EndpointConditions) -> bool
fn ne(&self, other: &EndpointConditions) -> bool
This method tests for !=
.
sourceimpl Serialize for EndpointConditions
impl Serialize for EndpointConditions
impl StructuralPartialEq for EndpointConditions
Auto Trait Implementations
impl RefUnwindSafe for EndpointConditions
impl Send for EndpointConditions
impl Sync for EndpointConditions
impl Unpin for EndpointConditions
impl UnwindSafe for EndpointConditions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more