pub struct APIVersionDiscovery {
pub version: Option<String>,
pub resources: Vec<APIResourceDiscovery>,
pub freshness: Option<String>,
}Expand description
APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
Fields§
§version: Option<String>version is the name of the version within a group version.
resources: Vec<APIResourceDiscovery>resources is a list of APIResourceDiscovery objects for the corresponding group version.
freshness: Option<String>freshness marks whether a group version’s discovery document is up to date. “Current” indicates the discovery document was recently refreshed. “Stale” indicates the discovery document could not be retrieved and the returned discovery document may be significantly out of date. Clients that require the latest version of the discovery information should not use the aggregated document.
Trait Implementations§
Source§impl Clone for APIVersionDiscovery
impl Clone for APIVersionDiscovery
Source§fn clone(&self) -> APIVersionDiscovery
fn clone(&self) -> APIVersionDiscovery
Returns a duplicate 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 APIVersionDiscovery
impl Debug for APIVersionDiscovery
Source§impl Default for APIVersionDiscovery
impl Default for APIVersionDiscovery
Source§fn default() -> APIVersionDiscovery
fn default() -> APIVersionDiscovery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for APIVersionDiscovery
impl<'de> Deserialize<'de> for APIVersionDiscovery
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 APIVersionDiscovery
impl PartialEq for APIVersionDiscovery
Source§impl Serialize for APIVersionDiscovery
impl Serialize for APIVersionDiscovery
impl StructuralPartialEq for APIVersionDiscovery
Auto Trait Implementations§
impl Freeze for APIVersionDiscovery
impl RefUnwindSafe for APIVersionDiscovery
impl Send for APIVersionDiscovery
impl Sync for APIVersionDiscovery
impl Unpin for APIVersionDiscovery
impl UnwindSafe for APIVersionDiscovery
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