Enum k8s_openapi::apimachinery::pkg::apis::meta::v1::WatchEvent
source · pub enum WatchEvent<T> {
Added(T),
Deleted(T),
Modified(T),
Bookmark {
resource_version: String,
},
ErrorStatus(Status),
ErrorOther(RawExtension),
}
Expand description
Event represents a single event to a watched resource.
Object is:
- If Type is Added or Modified: the new state of the object.
- If Type is Deleted: the state of the object immediately before deletion.
- If Type is Error: *Status is recommended; other types may make sense depending on context.
Variants§
Trait Implementations§
source§impl<T: Clone> Clone for WatchEvent<T>
impl<T: Clone> Clone for WatchEvent<T>
source§fn clone(&self) -> WatchEvent<T>
fn clone(&self) -> WatchEvent<T>
Returns a copy 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<T: Debug> Debug for WatchEvent<T>
impl<T: Debug> Debug for WatchEvent<T>
source§impl<'de, T> Deserialize<'de> for WatchEvent<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for WatchEvent<T>where T: Deserialize<'de>,
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<T: PartialEq> PartialEq<WatchEvent<T>> for WatchEvent<T>
impl<T: PartialEq> PartialEq<WatchEvent<T>> for WatchEvent<T>
source§fn eq(&self, other: &WatchEvent<T>) -> bool
fn eq(&self, other: &WatchEvent<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.