Skip to content

Commit

Permalink
Serialize and Deserialize impls for ApiResource
Browse files Browse the repository at this point in the history
Signed-off-by: Ole Krüger <[email protected]>
  • Loading branch information
vapourismo committed Aug 9, 2021
1 parent d40cd78 commit f3e20c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kube-core/src/discovery.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
//! Type information structs for API discovery
use crate::{gvk::GroupVersionKind, resource::Resource};
use serde::{Deserialize, Serialize};

/// Information about a Kubernetes API resource
///
/// Enough information to use it like a `Resource` by passing it to the dynamic `Api`
/// constructors like `Api::all_with` and `Api::namespaced_with`.
#[derive(Debug, Clone, Hash, Eq, PartialEq)]
#[derive(Debug, Clone, Hash, Eq, PartialEq, Serialize, Deserialize)]
pub struct ApiResource {
/// Resource group, empty for core group.
pub group: String,
Expand Down

0 comments on commit f3e20c7

Please sign in to comment.