pub struct DesiredCondition {
pub type_: String,
pub status: ConditionStatus,
pub reason: String,
pub message: String,
pub observed_generation: Option<i64>,
}Expand description
Fields§
§type_: StringThe condition’s type, in CamelCase or foo.example.com/CamelCase.
status: ConditionStatus§reason: StringA machine-readable CamelCase identifier for why the condition has
this status. Must not be empty: the API server rejects conditions
with an empty reason in resources that use the standard condition
schema.
message: StringA human-readable explanation, which may be empty.
observed_generation: Option<i64>The metadata.generation of the resource that this condition was
determined from. See observed_generation.
Implementations§
Source§impl DesiredCondition
impl DesiredCondition
Sourcepub fn new(
type_: impl Into<String>,
status: ConditionStatus,
reason: impl Into<String>,
message: impl Into<String>,
) -> Self
pub fn new( type_: impl Into<String>, status: ConditionStatus, reason: impl Into<String>, message: impl Into<String>, ) -> Self
Creates a desired condition with no observed generation.
Sourcepub fn observed_generation(self, generation: Option<i64>) -> Self
pub fn observed_generation(self, generation: Option<i64>) -> Self
Sets the generation this condition was determined from. This should
be the metadata.generation of the resource as it was passed to the
reconciler, not as it is when the status is written, since the spec
may have changed in between.
Trait Implementations§
Source§impl Clone for DesiredCondition
impl Clone for DesiredCondition
Source§fn clone(&self) -> DesiredCondition
fn clone(&self) -> DesiredCondition
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 DesiredCondition
impl Debug for DesiredCondition
impl Eq for DesiredCondition
Source§impl PartialEq for DesiredCondition
impl PartialEq for DesiredCondition
impl StructuralPartialEq for DesiredCondition
Auto Trait Implementations§
impl Freeze for DesiredCondition
impl RefUnwindSafe for DesiredCondition
impl Send for DesiredCondition
impl Sync for DesiredCondition
impl Unpin for DesiredCondition
impl UnsafeUnpin for DesiredCondition
impl UnwindSafe for DesiredCondition
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more