wakflo-common 0.0.3

wakflo.ai rust sdk
Documentation
use serde::{Deserialize, Serialize};

/// # TaskType
///
/// Enum for current schema status. Defaults to idle
#[derive(
    PartialEq,
    Eq,
    Serialize,
    Deserialize,
    Clone,
    Debug,
    Default,
    strum_macros::AsRefStr,
    strum_macros::IntoStaticStr,
    strum_macros::Display,
    strum_macros::EnumString,
)]
pub enum TaskType {
    #[serde(rename = "loop")]
    #[strum(serialize = "loop")]
    Loop,
    #[serde(rename = "branch")]
    #[strum(serialize = "branch")]
    Branch,
    #[default]
    #[serde(rename = "normal")]
    #[strum(serialize = "normal")]
    Normal,
    #[serde(rename = "boolean")]
    #[strum(serialize = "boolean")]
    Boolean,
}

/// # TaskType
///
/// Enum for current schema status. Defaults to idle
#[derive(
    PartialEq,
    Eq,
    Serialize,
    Deserialize,
    Clone,
    Debug,
    Default,
    strum_macros::AsRefStr,
    strum_macros::IntoStaticStr,
    strum_macros::Display,
    strum_macros::EnumString,
)]
pub enum StepType {
    #[serde(rename = "loop")]
    #[strum(serialize = "loop")]
    Loop,
    #[serde(rename = "branch")]
    #[strum(serialize = "branch")]
    Branch,
    #[default]
    #[serde(rename = "normal")]
    #[strum(serialize = "normal")]
    Normal,
    #[serde(rename = "boolean")]
    #[strum(serialize = "boolean")]
    Boolean,
    #[serde(rename = "condition")]
    #[strum(serialize = "condition")]
    Condition,
    #[serde(rename = "start")]
    #[strum(serialize = "start")]
    Start,
}

/// # TaskType
///
/// Enum for current schema status. Defaults to idle
#[derive(
    PartialEq,
    Eq,
    Serialize,
    Deserialize,
    Clone,
    Debug,
    Default,
    strum_macros::AsRefStr,
    strum_macros::IntoStaticStr,
    strum_macros::Display,
    strum_macros::EnumString,
)]
pub enum TaskPlatform {
    #[default]
    #[serde(rename = "native")]
    #[strum(serialize = "native")]
    Native,

    #[serde(rename = "plugin")]
    #[strum(serialize = "plugin")]
    Plugin,
}