Struct k8s_openapi::apimachinery::pkg::apis::meta::v1::GroupVersionForDiscovery
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)