Enum k8s_openapi_ext::metav1::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
Added(T)
Deleted(T)
Modified(T)
Bookmark
Fields
resource_version: String
ErrorStatus(Status)
ErrorOther(RawExtension)
Trait Implementations
sourceimpl<T> Clone for WatchEvent<T>where
T: Clone,
impl<T> Clone for WatchEvent<T>where
T: Clone,
sourcefn clone(&self) -> WatchEvent<T>
fn clone(&self) -> WatchEvent<T>
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T> Debug for WatchEvent<T>where
T: Debug,
impl<T> Debug for WatchEvent<T>where
T: Debug,
sourceimpl<'de, T> Deserialize<'de> for WatchEvent<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for WatchEvent<T>where
T: Deserialize<'de>,
sourcefn deserialize<D>(
deserializer: D
) -> Result<WatchEvent<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<WatchEvent<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T> PartialEq<WatchEvent<T>> for WatchEvent<T>where
T: PartialEq<T>,
impl<T> PartialEq<WatchEvent<T>> for WatchEvent<T>where
T: PartialEq<T>,
sourcefn eq(&self, other: &WatchEvent<T>) -> bool
fn eq(&self, other: &WatchEvent<T>) -> bool
sourceimpl<T> Serialize for WatchEvent<T>where
T: Serialize,
impl<T> Serialize for WatchEvent<T>where
T: Serialize,
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> StructuralPartialEq for WatchEvent<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for WatchEvent<T>where
T: RefUnwindSafe,
impl<T> Send for WatchEvent<T>where
T: Send,
impl<T> Sync for WatchEvent<T>where
T: Sync,
impl<T> Unpin for WatchEvent<T>where
T: Unpin,
impl<T> UnwindSafe for WatchEvent<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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