pub struct StorageVersion {
pub metadata: ObjectMeta,
pub spec: StorageVersionSpec,
pub status: StorageVersionStatus,
}
Expand description
Storage version of a specific resource.
Fields§
§metadata: ObjectMeta
The name is <group>.<resource>.
spec: StorageVersionSpec
Spec is an empty spec. It is here to comply with Kubernetes API style.
status: StorageVersionStatus
API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend.
Trait Implementations§
Source§impl Clone for StorageVersion
impl Clone for StorageVersion
Source§fn clone(&self) -> StorageVersion
fn clone(&self) -> StorageVersion
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 StorageVersion
impl Debug for StorageVersion
Source§impl DeepMerge for StorageVersion
impl DeepMerge for StorageVersion
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for StorageVersion
impl Default for StorageVersion
Source§fn default() -> StorageVersion
fn default() -> StorageVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StorageVersion
impl<'de> Deserialize<'de> for StorageVersion
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 ListableResource for StorageVersion
impl ListableResource for StorageVersion
Source§impl Metadata for StorageVersion
impl Metadata for StorageVersion
Source§impl PartialEq for StorageVersion
impl PartialEq for StorageVersion
Source§impl Resource for StorageVersion
impl Resource for StorageVersion
Source§const API_VERSION: &'static str = "internal.apiserver.k8s.io/v1alpha1"
const API_VERSION: &'static str = "internal.apiserver.k8s.io/v1alpha1"
The API version of the resource. This is a composite of
Resource::GROUP
and Resource::VERSION
(eg "apiextensions.k8s.io/v1beta1"
)
or just the version for resources without a group (eg "v1"
). Read moreSource§const GROUP: &'static str = "internal.apiserver.k8s.io"
const GROUP: &'static str = "internal.apiserver.k8s.io"
The group of the resource, or the empty string if the resource doesn’t have a group.
Source§const URL_PATH_SEGMENT: &'static str = "storageversions"
const URL_PATH_SEGMENT: &'static str = "storageversions"
The URL path segment used to construct URLs related to this resource. Read more
Source§type Scope = ClusterResourceScope
type Scope = ClusterResourceScope
Indicates whether the resource is namespace-scoped or cluster-scoped or a subresource. Read more
Source§impl Serialize for StorageVersion
impl Serialize for StorageVersion
impl StructuralPartialEq for StorageVersion
Auto Trait Implementations§
impl Freeze for StorageVersion
impl RefUnwindSafe for StorageVersion
impl Send for StorageVersion
impl Sync for StorageVersion
impl Unpin for StorageVersion
impl UnwindSafe for StorageVersion
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