pub struct ResourceRef {
pub api_version: String,
pub kind: String,
pub kind_candidates: Vec<String>,
pub api_version_candidates: Vec<String>,
pub api_version_branches: Vec<HelperBranch>,
pub kind_branches: Vec<KindBranch>,
}Expand description
Detected Kubernetes resource type (apiVersion + kind).
Fields§
§api_version: StringPrimary API version written or inferred for the resource.
kind: StringPrimary Kubernetes resource kind.
kind_candidates: Vec<String>Additional statically reachable kind literals.
api_version_candidates: Vec<String>Additional statically reachable API-version literals.
api_version_branches: Vec<HelperBranch>Guarded helper branches that produce API-version alternatives.
kind_branches: Vec<KindBranch>Predicate-qualified alternatives behind an inline-conditional
kind:. An IR-internal enrichment: attached at use-tagging time
(the selecting locals resolve only in template scope) and consumed
by the contract-signal builder’s per-row kind concretization. It
remains as non-serialized provenance so emission can distinguish an
exact selected arm from a selector-independent concrete resource.
Implementations§
Source§impl ResourceRef
impl ResourceRef
Sourcepub fn concrete(api_version: String, kind: String) -> ResourceRef
pub fn concrete(api_version: String, kind: String) -> ResourceRef
Resource with one exact apiVersion and no alternative candidates or branch-aware apiVersion output.
Trait Implementations§
Source§impl Clone for ResourceRef
impl Clone for ResourceRef
Source§fn clone(&self) -> ResourceRef
fn clone(&self) -> ResourceRef
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ResourceRef
impl Debug for ResourceRef
Source§impl<'de> Deserialize<'de> for ResourceRef
impl<'de> Deserialize<'de> for ResourceRef
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceRef, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for ResourceRef
Source§impl Hash for ResourceRef
impl Hash for ResourceRef
Source§impl Ord for ResourceRef
impl Ord for ResourceRef
Source§fn cmp(&self, other: &ResourceRef) -> Ordering
fn cmp(&self, other: &ResourceRef) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ResourceRef
impl PartialEq for ResourceRef
Source§impl PartialOrd for ResourceRef
impl PartialOrd for ResourceRef
Source§impl Serialize for ResourceRef
impl Serialize for ResourceRef
Source§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 ResourceRef
Auto Trait Implementations§
impl Freeze for ResourceRef
impl RefUnwindSafe for ResourceRef
impl Send for ResourceRef
impl Sync for ResourceRef
impl Unpin for ResourceRef
impl UnsafeUnpin for ResourceRef
impl UnwindSafe for ResourceRef
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.