//!`hooks` 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,
};
#[rustfmt::skip]
pub mod clip;
#[rustfmt::skip]
pub mod combine;
#[rustfmt::skip]
pub mod cond_pair;
#[rustfmt::skip]
pub mod cond_single;
#[rustfmt::skip]
pub mod create;
#[rustfmt::skip]
pub mod scheduling;
/// Output types for nodes.
pub mod out {
    ///Output for [`ConditioningTimestepsRange`](super::ConditioningTimestepsRange).
    #[derive(Clone)]
    #[allow(non_camel_case_types)]
    pub struct ConditioningTimestepsRangeOutput {
        ///No documentation.
        pub timesteps_range: crate::nodes::types::TimestepsRangeOut,
        ///No documentation.
        pub before_range: crate::nodes::types::TimestepsRangeOut,
        ///No documentation.
        pub after_range: crate::nodes::types::TimestepsRangeOut,
    }
}
///**Timesteps Range**: No description.
#[derive(Clone)]
#[allow(non_camel_case_types)]
pub struct ConditioningTimestepsRange<
    StartPercentParam: crate::nodes::types::Float,
    EndPercentParam: crate::nodes::types::Float,
> {
    /**No documentation.

**Metadata**:
  - Default: 0
  - Max: 1
  - Min: 0
  - Step: 0.001
*/
    pub start_percent: StartPercentParam,
    /**No documentation.

**Metadata**:
  - Default: 1
  - Max: 1
  - Min: 0
  - Step: 0.001
*/
    pub end_percent: EndPercentParam,
}
impl<
    StartPercentParam: crate::nodes::types::Float,
    EndPercentParam: crate::nodes::types::Float,
> ConditioningTimestepsRange<StartPercentParam, EndPercentParam> {
    /// Create a new node.
    pub fn new(start_percent: StartPercentParam, end_percent: EndPercentParam) -> Self {
        Self { start_percent, end_percent }
    }
}
impl<
    StartPercentParam: crate::nodes::types::Float,
    EndPercentParam: crate::nodes::types::Float,
> crate::nodes::TypedNode
for ConditioningTimestepsRange<StartPercentParam, EndPercentParam> {
    type Output = out::ConditioningTimestepsRangeOutput;
    fn output(&self, node_id: WorkflowNodeId) -> Self::Output {
        Self::Output {
            timesteps_range: crate::nodes::types::TimestepsRangeOut::from_dynamic(
                node_id,
                0u32,
            ),
            before_range: crate::nodes::types::TimestepsRangeOut::from_dynamic(
                node_id,
                1u32,
            ),
            after_range: crate::nodes::types::TimestepsRangeOut::from_dynamic(
                node_id,
                2u32,
            ),
        }
    }
    fn inputs(&self) -> HashMap<String, WorkflowInput> {
        let mut output = HashMap::default();
        output.insert("start_percent".to_string(), self.start_percent.clone().into());
        output.insert("end_percent".to_string(), self.end_percent.clone().into());
        output
    }
    const NAME: &'static str = "ConditioningTimestepsRange";
    const DISPLAY_NAME: &'static str = "Timesteps Range";
    const DESCRIPTION: &'static str = "";
    const CATEGORY: &'static str = "advanced/hooks";
}
