Struct statehub_cluster_operator::v1alpha1::StatehubCluster [−][src]
pub struct StatehubCluster {
pub api_version: String,
pub kind: String,
pub metadata: ObjectMeta,
pub spec: ClusterSpec,
}
Expand description
Auto-generated derived type for ClusterSpec via CustomResource
Fields
api_version: String
kind: String
metadata: ObjectMeta
spec: ClusterSpec
Implementations
Trait Implementations
Helper to generate the CRD including the JsonSchema Read more
Helper to generate the api information type for use with the dynamic Api
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
type DynamicType = ()
type DynamicType = ()
Type information for types that do not know their resource information at compile time. Read more
Returns apiVersion of this object
Metadata that all persisted resources must have
Metadata that all persisted resources must have
Auto Trait Implementations
impl RefUnwindSafe for StatehubCluster
impl Send for StatehubCluster
impl Sync for StatehubCluster
impl Unpin for StatehubCluster
impl UnwindSafe for StatehubCluster
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Returns the name of the resource, panicking if it is
missing. Use this function if you know that name is set, for example
when resource was received from the apiserver.
Because of .metadata.generateName
field, in other contexts name
may be missing. Read more
pub fn resource_version(&self) -> Option<String>
pub fn resource_version(&self) -> Option<String>
The resource version
Unique ID (if you delete resource and then create a new resource with the same name, it will have different ID) Read more
pub fn labels_mut(&mut self) -> &mut BTreeMap<String, String>
pub fn labels_mut(&mut self) -> &mut BTreeMap<String, String>
Provides mutable access to the labels
pub fn annotations(&self) -> &BTreeMap<String, String>
pub fn annotations(&self) -> &BTreeMap<String, String>
Returns resource annotations
pub fn annotations_mut(&mut self) -> &mut BTreeMap<String, String>
pub fn annotations_mut(&mut self) -> &mut BTreeMap<String, String>
Provider mutable access to the annotations
pub fn owner_references(&self) -> &[OwnerReference]
pub fn owner_references(&self) -> &[OwnerReference]
Returns resource owner references
pub fn owner_references_mut(&mut self) -> &mut Vec<OwnerReference, Global>
pub fn owner_references_mut(&mut self) -> &mut Vec<OwnerReference, Global>
Provides mutable access to the owner references
pub fn finalizers(&self) -> &[String]
pub fn finalizers(&self) -> &[String]
Returns resource finalizers
pub fn finalizers_mut(&mut self) -> &mut Vec<String, Global>
pub fn finalizers_mut(&mut self) -> &mut Vec<String, Global>
Provides mutable access to the finalizers