pub struct OwnerReference {
pub api_version: Option<String>,
pub block_owner_deletion: Option<bool>,
pub controller: Option<bool>,
pub kind: Option<String>,
pub name: Option<String>,
pub uid: Option<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. +structType=atomic
Fields§
§api_version: Option<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. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional
controller: Option<bool>If true, this reference points to the managing controller. +optional
kind: Option<String>Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
name: Option<String>Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names
uid: Option<String>UID is a type that holds unique ID values, including UUIDs. Because we don’t ONLY use UUIDs, this is an alias to string. Being a type captures intent and helps make sure that UIDs and names do not get conflated.
Implementations§
Source§impl OwnerReference
impl OwnerReference
pub fn new() -> OwnerReference
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<'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 FromStr for OwnerReference
Converts Query Parameters representation (style=form, explode=false) to a OwnerReference value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for OwnerReference
Converts Query Parameters representation (style=form, explode=false) to a OwnerReference value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for OwnerReference
impl PartialEq for OwnerReference
Source§impl Serialize for OwnerReference
impl Serialize for OwnerReference
Source§impl ToString for OwnerReference
Converts the OwnerReference value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for OwnerReference
Converts the OwnerReference value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer