pub struct ServerStorageVersion {
pub api_server_id: Option<String>,
pub decodable_versions: Option<Vec<String>>,
pub encoding_version: Option<String>,
pub served_versions: Option<Vec<String>>,
}
Expand description
An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.
Fields§
§api_server_id: Option<String>
The ID of the reporting API server.
decodable_versions: Option<Vec<String>>
The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.
encoding_version: Option<String>
The API server encodes the object to this version when persisting it in the backend (e.g., etcd).
served_versions: Option<Vec<String>>
The API server can serve these versions. DecodableVersions must include all ServedVersions.
Trait Implementations§
Source§impl Clone for ServerStorageVersion
impl Clone for ServerStorageVersion
Source§fn clone(&self) -> ServerStorageVersion
fn clone(&self) -> ServerStorageVersion
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 ServerStorageVersion
impl Debug for ServerStorageVersion
Source§impl DeepMerge for ServerStorageVersion
impl DeepMerge for ServerStorageVersion
Source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.Source§impl Default for ServerStorageVersion
impl Default for ServerStorageVersion
Source§fn default() -> ServerStorageVersion
fn default() -> ServerStorageVersion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerStorageVersion
impl<'de> Deserialize<'de> for ServerStorageVersion
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 ServerStorageVersion
impl PartialEq for ServerStorageVersion
Source§impl Serialize for ServerStorageVersion
impl Serialize for ServerStorageVersion
impl StructuralPartialEq for ServerStorageVersion
Auto Trait Implementations§
impl Freeze for ServerStorageVersion
impl RefUnwindSafe for ServerStorageVersion
impl Send for ServerStorageVersion
impl Sync for ServerStorageVersion
impl Unpin for ServerStorageVersion
impl UnwindSafe for ServerStorageVersion
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