pub enum YamlType {
Show 27 variants
K8sDeployment,
K8sService,
K8sConfigMap,
K8sSecret,
K8sIngress,
K8sHPA,
K8sCronJob,
K8sJob,
K8sPVC,
K8sNetworkPolicy,
K8sStatefulSet,
K8sDaemonSet,
K8sRole,
K8sClusterRole,
K8sRoleBinding,
K8sClusterRoleBinding,
K8sServiceAccount,
K8sGeneric,
GitLabCI,
GitHubActions,
DockerCompose,
Prometheus,
Alertmanager,
HelmValues,
Ansible,
OpenAPI,
Generic,
}Expand description
Supported YAML configuration types for schema-based validation.
Variant names are self-documenting (K8sDeployment, GitLabCI, etc.).
Use detect_type to obtain a value from parsed YAML content, then
convert to a schema key with to_schema_key.
Variants§
K8sDeployment
K8sService
K8sConfigMap
K8sSecret
K8sIngress
K8sHPA
K8sCronJob
K8sJob
K8sPVC
K8sNetworkPolicy
K8sStatefulSet
K8sDaemonSet
K8sRole
K8sClusterRole
K8sRoleBinding
K8sClusterRoleBinding
K8sServiceAccount
K8sGeneric
GitLabCI
GitHubActions
DockerCompose
Prometheus
Alertmanager
HelmValues
Ansible
OpenAPI
Generic
Implementations§
Source§impl YamlType
impl YamlType
Sourcepub fn to_schema_key(&self) -> &'static str
pub fn to_schema_key(&self) -> &'static str
Convert to schema registry key (e.g., “k8s/deployment”)
Sourcepub fn is_kubernetes(&self) -> bool
pub fn is_kubernetes(&self) -> bool
Check if this is a Kubernetes type
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Get display name for UI
Trait Implementations§
impl Copy for YamlType
impl Eq for YamlType
impl StructuralPartialEq for YamlType
Auto Trait Implementations§
impl Freeze for YamlType
impl RefUnwindSafe for YamlType
impl Send for YamlType
impl Sync for YamlType
impl Unpin for YamlType
impl UnsafeUnpin for YamlType
impl UnwindSafe for YamlType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.