pub struct GroupVersion {
pub group: String,
pub version: String,
}
Expand description
Core information about a family of API Resources
Fields§
§group: String
API group
version: String
Version
Implementations§
Source§impl GroupVersion
impl GroupVersion
Sourcepub fn gv(group_: &str, version_: &str) -> GroupVersion
pub fn gv(group_: &str, version_: &str) -> GroupVersion
Construct from explicit group and version
Sourcepub fn with_kind(self, kind: &str) -> GroupVersionKind
pub fn with_kind(self, kind: &str) -> GroupVersionKind
Upgrade a GroupVersion to a GroupVersionKind
Source§impl GroupVersion
impl GroupVersion
Sourcepub fn api_version(&self) -> String
pub fn api_version(&self) -> String
Generate the apiVersion string used in a kind’s yaml
Trait Implementations§
Source§impl Clone for GroupVersion
impl Clone for GroupVersion
Source§fn clone(&self) -> GroupVersion
fn clone(&self) -> GroupVersion
Returns a copy of the value. Read more
1.0.0 · 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 GroupVersion
impl Debug for GroupVersion
Source§impl<'de> Deserialize<'de> for GroupVersion
impl<'de> Deserialize<'de> for GroupVersion
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GroupVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GroupVersion, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for GroupVersion
impl FromStr for GroupVersion
Source§type Err = ParseGroupVersionError
type Err = ParseGroupVersionError
The associated error which can be returned from parsing.
Source§fn from_str(gv: &str) -> Result<GroupVersion, <GroupVersion as FromStr>::Err>
fn from_str(gv: &str) -> Result<GroupVersion, <GroupVersion as FromStr>::Err>
Parses a string
s
to return a value of this type. Read moreSource§impl Hash for GroupVersion
impl Hash for GroupVersion
Source§impl PartialEq for GroupVersion
impl PartialEq for GroupVersion
Source§impl Serialize for GroupVersion
impl Serialize for GroupVersion
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,
Serialize this value into the given Serde serializer. Read more
impl Eq for GroupVersion
impl StructuralPartialEq for GroupVersion
Auto Trait Implementations§
impl Freeze for GroupVersion
impl RefUnwindSafe for GroupVersion
impl Send for GroupVersion
impl Sync for GroupVersion
impl Unpin for GroupVersion
impl UnwindSafe for GroupVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
Compare self to
key
and return true
if they are equal.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
Compare self to
key
and return true
if they are equal.