pub struct APIResourceDiscovery {
pub resource: Option<String>,
pub response_kind: Option<GroupVersionKind>,
pub scope: Option<String>,
pub singular_resource: Option<String>,
pub verbs: Vec<String>,
pub short_names: Vec<String>,
pub categories: Vec<String>,
pub subresources: Vec<APISubresourceDiscovery>,
}Expand description
APIResourceDiscovery provides information about an API resource for discovery.
Fields§
§resource: Option<String>resource is the plural name of the resource. This is used in the URL path and is the unique identifier for this resource across all versions in the API group.
response_kind: Option<GroupVersionKind>responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
scope: Option<String>scope indicates the scope of a resource, either “Cluster” or “Namespaced”.
singular_resource: Option<String>singularResource is the singular name of the resource. This allows clients to handle plural and singular opaquely.
verbs: Vec<String>verbs is a list of supported API operation types (this includes but is not limited to get, list, watch, create, update, patch, delete, deletecollection, and proxy).
short_names: Vec<String>shortNames is a list of suggested short names of the resource.
categories: Vec<String>categories is a list of the grouped resources this resource belongs to (e.g. ‘all’). Clients may use this to simplify acting on multiple resource types at once.
subresources: Vec<APISubresourceDiscovery>subresources is a list of subresources provided by this resource. Subresources are located at /api/v1/namespaces/{namespace}/{resource}/{name}/{subresource}
Trait Implementations§
Source§impl Clone for APIResourceDiscovery
impl Clone for APIResourceDiscovery
Source§fn clone(&self) -> APIResourceDiscovery
fn clone(&self) -> APIResourceDiscovery
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for APIResourceDiscovery
impl Debug for APIResourceDiscovery
Source§impl Default for APIResourceDiscovery
impl Default for APIResourceDiscovery
Source§fn default() -> APIResourceDiscovery
fn default() -> APIResourceDiscovery
Source§impl<'de> Deserialize<'de> for APIResourceDiscovery
impl<'de> Deserialize<'de> for APIResourceDiscovery
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<APIResourceDiscovery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<APIResourceDiscovery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for APIResourceDiscovery
impl PartialEq for APIResourceDiscovery
Source§impl Serialize for APIResourceDiscovery
impl Serialize for APIResourceDiscovery
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,
impl StructuralPartialEq for APIResourceDiscovery
Auto Trait Implementations§
impl Freeze for APIResourceDiscovery
impl RefUnwindSafe for APIResourceDiscovery
impl Send for APIResourceDiscovery
impl Sync for APIResourceDiscovery
impl Unpin for APIResourceDiscovery
impl UnwindSafe for APIResourceDiscovery
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
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>
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>
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 more