// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ValidateWorkflowBlockConfigResponse {
    /// Defaults to `true`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub ok: Option<bool>,
    pub workflow_id: String,
    pub block_id: String,
    pub block_type: String,
    pub config_hash: String,
}
impl ValidateWorkflowBlockConfigResponse {
    /// Construct a new `ValidateWorkflowBlockConfigResponse` with the required fields set.
    #[allow(deprecated)]
    pub fn new(
        workflow_id: impl Into<String>,
        block_id: impl Into<String>,
        block_type: impl Into<String>,
        config_hash: impl Into<String>,
    ) -> Self {
        Self {
            ok: Default::default(),
            workflow_id: workflow_id.into(),
            block_id: block_id.into(),
            block_type: block_type.into(),
            config_hash: config_hash.into(),
        }
    }
}
