Struct OwnerReference
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: StringAPI 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: StringKind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
name: StringName of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names
uid: StringUID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
Trait Implementations§
§impl Clone for OwnerReference
impl Clone for OwnerReference
§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 more§impl Debug for OwnerReference
impl Debug for OwnerReference
§impl DeepMerge for OwnerReference
impl DeepMerge for OwnerReference
§fn merge_from(&mut self, other: OwnerReference)
fn merge_from(&mut self, other: OwnerReference)
other into self.§impl Default for OwnerReference
impl Default for OwnerReference
§fn default() -> OwnerReference
fn default() -> OwnerReference
§impl<'de> Deserialize<'de> for OwnerReference
impl<'de> Deserialize<'de> for OwnerReference
§fn 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>,
§impl JsonSchema for OwnerReference
Available on crate feature schemars only.
impl JsonSchema for OwnerReference
schemars only.§fn schema_name() -> Cow<'static, str>
fn schema_name() -> Cow<'static, str>
§fn json_schema(__gen: &mut SchemaGenerator) -> Schema
fn json_schema(__gen: &mut SchemaGenerator) -> Schema
§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more§impl PartialEq for OwnerReference
impl PartialEq for OwnerReference
§impl Serialize for OwnerReference
impl Serialize for OwnerReference
§fn 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,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].