// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
/// Single-rule schema dependency for Level 2 drift detection.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AssertionSchemaDep {
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub output_handle_id: Option<String>,
    pub schema_path: String,
    pub subtree_hash: String,
    /// Defaults to `false`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub depends_on_root: Option<bool>,
}
impl AssertionSchemaDep {
    /// Construct a new `AssertionSchemaDep` with the required fields set.
    #[allow(deprecated)]
    pub fn new(schema_path: impl Into<String>, subtree_hash: impl Into<String>) -> Self {
        Self {
            output_handle_id: Default::default(),
            schema_path: schema_path.into(),
            subtree_hash: subtree_hash.into(),
            depends_on_root: Default::default(),
        }
    }
}
