pub struct APISubresourceDiscovery {
pub subresource: Option<String>,
pub response_kind: Option<GroupVersionKind>,
pub accepted_types: Vec<GroupVersionKind>,
pub verbs: Vec<String>,
}Expand description
APISubresourceDiscovery provides information about an API subresource for discovery.
Fields§
§subresource: Option<String>subresource is the name of the subresource. This is used in the URL path and is the unique identifier for this resource across all versions.
response_kind: Option<GroupVersionKind>responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
accepted_types: Vec<GroupVersionKind>acceptedTypes describes the kinds that this endpoint accepts. Subresources may accept the parent’s kind (for update, patch) or its own kind (for create).
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).
Trait Implementations§
Source§impl Clone for APISubresourceDiscovery
impl Clone for APISubresourceDiscovery
Source§fn clone(&self) -> APISubresourceDiscovery
fn clone(&self) -> APISubresourceDiscovery
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 APISubresourceDiscovery
impl Debug for APISubresourceDiscovery
Source§impl Default for APISubresourceDiscovery
impl Default for APISubresourceDiscovery
Source§fn default() -> APISubresourceDiscovery
fn default() -> APISubresourceDiscovery
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for APISubresourceDiscovery
impl<'de> Deserialize<'de> for APISubresourceDiscovery
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 APISubresourceDiscovery
impl PartialEq for APISubresourceDiscovery
Source§impl Serialize for APISubresourceDiscovery
impl Serialize for APISubresourceDiscovery
impl StructuralPartialEq for APISubresourceDiscovery
Auto Trait Implementations§
impl Freeze for APISubresourceDiscovery
impl RefUnwindSafe for APISubresourceDiscovery
impl Send for APISubresourceDiscovery
impl Sync for APISubresourceDiscovery
impl Unpin for APISubresourceDiscovery
impl UnwindSafe for APISubresourceDiscovery
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