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<APIVersionDiscovery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<APIVersionDiscovery, <__D as Deserializer<'de>>::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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more