Struct k8s_openapi::api::core::v1::TypedObjectReference
source · pub struct TypedObjectReference {
pub api_group: Option<String>,
pub kind: String,
pub name: String,
pub namespace: Option<String>,
}
Fields§
§api_group: Option<String>
APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
kind: String
Kind is the type of resource being referenced
name: String
Name is the name of resource being referenced
namespace: Option<String>
Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace’s owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled.
Trait Implementations§
source§impl Clone for TypedObjectReference
impl Clone for TypedObjectReference
source§fn clone(&self) -> TypedObjectReference
fn clone(&self) -> TypedObjectReference
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TypedObjectReference
impl Debug for TypedObjectReference
source§impl DeepMerge for TypedObjectReference
impl DeepMerge for TypedObjectReference
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for TypedObjectReference
impl Default for TypedObjectReference
source§fn default() -> TypedObjectReference
fn default() -> TypedObjectReference
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TypedObjectReference
impl<'de> Deserialize<'de> for TypedObjectReference
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for TypedObjectReference
impl PartialEq for TypedObjectReference
source§fn eq(&self, other: &TypedObjectReference) -> bool
fn eq(&self, other: &TypedObjectReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TypedObjectReference
impl Serialize for TypedObjectReference
impl StructuralPartialEq for TypedObjectReference
Auto Trait Implementations§
impl Freeze for TypedObjectReference
impl RefUnwindSafe for TypedObjectReference
impl Send for TypedObjectReference
impl Sync for TypedObjectReference
impl Unpin for TypedObjectReference
impl UnwindSafe for TypedObjectReference
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
Mutably borrows from an owned value. Read more