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

Object Safety§

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§