kube_client::client::scope

Trait NamespacedRef

Source
pub trait NamespacedRef<K> {
    // Required method
    fn within(&self, namespace: impl Into<Option<String>>) -> impl ObjectRef<K>;
}
Available on crate features unstable-client and client only.
Expand description

Reference resolver for a specified namespace

Required Methods§

Source

fn within(&self, namespace: impl Into<Option<String>>) -> impl ObjectRef<K>

Resolve reference in the provided namespace

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<K> NamespacedRef<K> for LocalObjectReference
where K: Resource, K::DynamicType: Default, K::Scope: NamespaceScope,

Source§

fn within(&self, namespace: impl Into<Option<String>>) -> impl ObjectRef<K>

Source§

impl<K> NamespacedRef<K> for ObjectReference
where K: Resource, K::Scope: NamespaceScope,

Source§

fn within(&self, namespace: impl Into<Option<String>>) -> impl ObjectRef<K>

Source§

impl<K> NamespacedRef<K> for OwnerReference
where K: Resource, K::Scope: NamespaceScope,

Source§

fn within(&self, namespace: impl Into<Option<String>>) -> impl ObjectRef<K>

Implementors§