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, so it
never serializes.
Implementations§
Trait Implementations§
Source§impl Clone for ResourceRef
impl Clone for ResourceRef
Source§fn clone(&self) -> ResourceRef
fn clone(&self) -> ResourceRef
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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<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
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,
Compares and returns the maximum of two values. Read more
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
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
Mutably borrows from an owned value. Read more