//!`style_model` definitions/categories.
#![allow(
    unused_imports,
    clippy::too_many_arguments,
    clippy::new_without_default,
    clippy::doc_lazy_continuation
)]
use std::collections::HashMap;
use crate::{
    workflow::{WorkflowNodeId, WorkflowInput},
    nodes::types::Out,
};
///**Apply Style Model**: No description.
#[derive(Clone)]
#[allow(non_camel_case_types)]
pub struct StyleModelApply<
    ConditioningParam: crate::nodes::types::Conditioning,
    StyleModelParam: crate::nodes::types::StyleModel,
    ClipVisionOutputParam: crate::nodes::types::ClipVisionOutput,
    StrengthParam: crate::nodes::types::Float,
    StrengthTypeParam: crate::nodes::types::String,
> {
    ///No documentation.
    pub conditioning: ConditioningParam,
    ///No documentation.
    pub style_model: StyleModelParam,
    ///No documentation.
    pub clip_vision_output: ClipVisionOutputParam,
    /**No documentation.

**Metadata**:
  - Default: 1
  - Max: 10
  - Min: 0
  - Step: 0.001
*/
    pub strength: StrengthParam,
    ///No documentation.
    pub strength_type: StrengthTypeParam,
}
impl<
    ConditioningParam: crate::nodes::types::Conditioning,
    StyleModelParam: crate::nodes::types::StyleModel,
    ClipVisionOutputParam: crate::nodes::types::ClipVisionOutput,
    StrengthParam: crate::nodes::types::Float,
    StrengthTypeParam: crate::nodes::types::String,
> StyleModelApply<
    ConditioningParam,
    StyleModelParam,
    ClipVisionOutputParam,
    StrengthParam,
    StrengthTypeParam,
> {
    /// Create a new node.
    pub fn new(
        conditioning: ConditioningParam,
        style_model: StyleModelParam,
        clip_vision_output: ClipVisionOutputParam,
        strength: StrengthParam,
        strength_type: StrengthTypeParam,
    ) -> Self {
        Self {
            conditioning,
            style_model,
            clip_vision_output,
            strength,
            strength_type,
        }
    }
}
impl<
    ConditioningParam: crate::nodes::types::Conditioning,
    StyleModelParam: crate::nodes::types::StyleModel,
    ClipVisionOutputParam: crate::nodes::types::ClipVisionOutput,
    StrengthParam: crate::nodes::types::Float,
    StrengthTypeParam: crate::nodes::types::String,
> crate::nodes::TypedNode
for StyleModelApply<
    ConditioningParam,
    StyleModelParam,
    ClipVisionOutputParam,
    StrengthParam,
    StrengthTypeParam,
> {
    type Output = crate::nodes::types::ConditioningOut;
    fn output(&self, node_id: WorkflowNodeId) -> Self::Output {
        Self::Output::from_dynamic(node_id, 0)
    }
    fn inputs(&self) -> HashMap<String, WorkflowInput> {
        let mut output = HashMap::default();
        output.insert("conditioning".to_string(), self.conditioning.clone().into());
        output.insert("style_model".to_string(), self.style_model.clone().into());
        output
            .insert(
                "clip_vision_output".to_string(),
                self.clip_vision_output.clone().into(),
            );
        output.insert("strength".to_string(), self.strength.clone().into());
        output.insert("strength_type".to_string(), self.strength_type.clone().into());
        output
    }
    const NAME: &'static str = "StyleModelApply";
    const DISPLAY_NAME: &'static str = "Apply Style Model";
    const DESCRIPTION: &'static str = "";
    const CATEGORY: &'static str = "model/conditioning/style_model";
}
