pub struct NativeTriggerWithExternal {
pub external_id: String,
pub workspace_id: String,
pub service_name: NativeServiceName,
pub script_path: String,
pub is_flow: bool,
pub service_config: HashMap<String, Value>,
pub error: Option<Option<String>>,
pub summary: Option<Option<String>>,
pub external_data: Option<HashMap<String, Value>>,
pub external_error: Option<Option<String>>,
}Expand description
NativeTriggerWithExternal : Full trigger response containing both Windmill data and external service data
Fields§
§external_id: StringThe unique identifier from the external service
workspace_id: StringThe workspace this trigger belongs to
service_name: NativeServiceName§script_path: StringThe path to the script or flow that will be triggered
is_flow: boolWhether the trigger targets a flow (true) or a script (false)
service_config: HashMap<String, Value>Configuration for the trigger including event_type and service_config
error: Option<Option<String>>Error message if the trigger is in an error state
summary: Option<Option<String>>Short summary to be displayed when listed
external_data: Option<HashMap<String, Value>>Configuration data from the external service. Null when the service has no such API, or when it could not be read — see external_error.
external_error: Option<Option<String>>Why the external service configuration could not be read. When set, external_data is null and the configuration Windmill stored is returned instead.
Implementations§
Source§impl NativeTriggerWithExternal
impl NativeTriggerWithExternal
Sourcepub fn new(
external_id: String,
workspace_id: String,
service_name: NativeServiceName,
script_path: String,
is_flow: bool,
service_config: HashMap<String, Value>,
external_data: Option<HashMap<String, Value>>,
) -> NativeTriggerWithExternal
pub fn new( external_id: String, workspace_id: String, service_name: NativeServiceName, script_path: String, is_flow: bool, service_config: HashMap<String, Value>, external_data: Option<HashMap<String, Value>>, ) -> NativeTriggerWithExternal
Full trigger response containing both Windmill data and external service data
Trait Implementations§
Source§impl Clone for NativeTriggerWithExternal
impl Clone for NativeTriggerWithExternal
Source§fn clone(&self) -> NativeTriggerWithExternal
fn clone(&self) -> NativeTriggerWithExternal
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more