use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TriggerExtraProperty {
#[serde(rename = "path")]
pub path: String,
#[serde(rename = "script_path")]
pub script_path: String,
#[serde(rename = "email")]
pub email: String,
#[serde(rename = "extra_perms")]
pub extra_perms: std::collections::HashMap<String, bool>,
#[serde(rename = "workspace_id")]
pub workspace_id: String,
#[serde(rename = "edited_by")]
pub edited_by: String,
#[serde(rename = "edited_at")]
pub edited_at: String,
#[serde(rename = "is_flow")]
pub is_flow: bool,
}
impl TriggerExtraProperty {
pub fn new(path: String, script_path: String, email: String, extra_perms: std::collections::HashMap<String, bool>, workspace_id: String, edited_by: String, edited_at: String, is_flow: bool) -> TriggerExtraProperty {
TriggerExtraProperty {
path,
script_path,
email,
extra_perms,
workspace_id,
edited_by,
edited_at,
is_flow,
}
}
}