pub struct GroupVersionForDiscovery {
pub group_version: String,
pub version: String,
}
Expand description
GroupVersion contains the “group/version” and “version” string of a version. It is made a struct to keep extensibility.
Fields§
§group_version: String
groupVersion specifies the API group and version in the form “group/version”
version: String
version specifies the version in the form of “version”. This is to save the clients the trouble of splitting the GroupVersion.
Trait Implementations§
Source§impl Clone for GroupVersionForDiscovery
impl Clone for GroupVersionForDiscovery
Source§fn clone(&self) -> GroupVersionForDiscovery
fn clone(&self) -> GroupVersionForDiscovery
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 GroupVersionForDiscovery
impl Debug for GroupVersionForDiscovery
Source§impl DeepMerge for GroupVersionForDiscovery
impl DeepMerge for GroupVersionForDiscovery
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for GroupVersionForDiscovery
impl Default for GroupVersionForDiscovery
Source§fn default() -> GroupVersionForDiscovery
fn default() -> GroupVersionForDiscovery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GroupVersionForDiscovery
impl<'de> Deserialize<'de> for GroupVersionForDiscovery
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
Source§impl PartialEq for GroupVersionForDiscovery
impl PartialEq for GroupVersionForDiscovery
Source§impl Serialize for GroupVersionForDiscovery
impl Serialize for GroupVersionForDiscovery
impl StructuralPartialEq for GroupVersionForDiscovery
Auto Trait Implementations§
impl Freeze for GroupVersionForDiscovery
impl RefUnwindSafe for GroupVersionForDiscovery
impl Send for GroupVersionForDiscovery
impl Sync for GroupVersionForDiscovery
impl Unpin for GroupVersionForDiscovery
impl UnwindSafe for GroupVersionForDiscovery
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