pub enum ApiPresenceQuery {
Resource {
api_version: String,
kind: String,
},
GroupVersion {
api_version: String,
},
}Expand description
A typed .Capabilities.APIVersions.Has ... query.
Variants§
Resource
Presence of one concrete resource kind at an API version.
GroupVersion
Presence of any resource in an API group/version.
Implementations§
Source§impl ApiPresenceQuery
impl ApiPresenceQuery
Sourcepub fn parse_helm_literal(api: &str) -> Option<Self>
pub fn parse_helm_literal(api: &str) -> Option<Self>
Parses either Helm’s group/version[/Kind] or core version/Kind spelling.
Sourcepub fn canonical_helm_literal(&self) -> String
pub fn canonical_helm_literal(&self) -> String
Canonical Helm literal for this query.
Trait Implementations§
Source§impl Clone for ApiPresenceQuery
impl Clone for ApiPresenceQuery
Source§fn clone(&self) -> ApiPresenceQuery
fn clone(&self) -> ApiPresenceQuery
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 ApiPresenceQuery
impl Debug for ApiPresenceQuery
impl Eq for ApiPresenceQuery
Source§impl PartialEq for ApiPresenceQuery
impl PartialEq for ApiPresenceQuery
impl StructuralPartialEq for ApiPresenceQuery
Auto Trait Implementations§
impl Freeze for ApiPresenceQuery
impl RefUnwindSafe for ApiPresenceQuery
impl Send for ApiPresenceQuery
impl Sync for ApiPresenceQuery
impl Unpin for ApiPresenceQuery
impl UnsafeUnpin for ApiPresenceQuery
impl UnwindSafe for ApiPresenceQuery
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