Struct k8s_openapi_ext::metav1::OwnerReference
source · [−]pub struct OwnerReference {
pub api_version: String,
pub block_owner_deletion: Option<bool>,
pub controller: Option<bool>,
pub kind: String,
pub name: String,
pub uid: String,
}
Expand description
OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.
Fields
api_version: String
API version of the referent.
block_owner_deletion: Option<bool>
If true, AND if the owner has the “foregroundDeletion” finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs “delete” permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.
controller: Option<bool>
If true, this reference points to the managing controller.
kind: String
Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
name: String
Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
uid: String
UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids
Trait Implementations
sourceimpl Clone for OwnerReference
impl Clone for OwnerReference
sourcefn clone(&self) -> OwnerReference
fn clone(&self) -> OwnerReference
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 OwnerReference
impl Debug for OwnerReference
sourceimpl Default for OwnerReference
impl Default for OwnerReference
sourcefn default() -> OwnerReference
fn default() -> OwnerReference
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OwnerReference
impl<'de> Deserialize<'de> for OwnerReference
sourcefn deserialize<D>(
deserializer: D
) -> Result<OwnerReference, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<OwnerReference, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<OwnerReference> for OwnerReference
impl PartialEq<OwnerReference> for OwnerReference
sourcefn eq(&self, other: &OwnerReference) -> bool
fn eq(&self, other: &OwnerReference) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for OwnerReference
impl Serialize for OwnerReference
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 StructuralPartialEq for OwnerReference
Auto Trait Implementations
impl RefUnwindSafe for OwnerReference
impl Send for OwnerReference
impl Sync for OwnerReference
impl Unpin for OwnerReference
impl UnwindSafe for OwnerReference
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