Struct k8s_openapi::apimachinery::pkg::apis::meta::v1::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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
uid: String
UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
Trait Implementations§
source§impl Clone for OwnerReference
impl Clone for OwnerReference
source§fn clone(&self) -> OwnerReference
fn clone(&self) -> OwnerReference
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OwnerReference
impl Debug for OwnerReference
source§impl DeepMerge for OwnerReference
impl DeepMerge for OwnerReference
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for OwnerReference
impl Default for OwnerReference
source§fn default() -> OwnerReference
fn default() -> OwnerReference
source§impl<'de> Deserialize<'de> for OwnerReference
impl<'de> Deserialize<'de> for OwnerReference
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>,
source§impl JsonSchema for OwnerReference
impl JsonSchema for OwnerReference
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for OwnerReference
impl PartialEq for OwnerReference
source§impl Serialize for OwnerReference
impl Serialize for OwnerReference
impl StructuralPartialEq for OwnerReference
Auto Trait Implementations§
impl Freeze for OwnerReference
impl RefUnwindSafe for OwnerReference
impl Send for OwnerReference
impl Sync for OwnerReference
impl Unpin for OwnerReference
impl UnwindSafe for OwnerReference
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)