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 external_data: HashMap<String, Value>,
}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
external_data: HashMap<String, Value>Configuration data from the external service
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: 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: 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
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeTriggerWithExternal
impl Debug for NativeTriggerWithExternal
Source§impl Default for NativeTriggerWithExternal
impl Default for NativeTriggerWithExternal
Source§fn default() -> NativeTriggerWithExternal
fn default() -> NativeTriggerWithExternal
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NativeTriggerWithExternal
impl<'de> Deserialize<'de> for NativeTriggerWithExternal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for NativeTriggerWithExternal
Auto Trait Implementations§
impl Freeze for NativeTriggerWithExternal
impl RefUnwindSafe for NativeTriggerWithExternal
impl Send for NativeTriggerWithExternal
impl Sync for NativeTriggerWithExternal
impl Unpin for NativeTriggerWithExternal
impl UnwindSafe for NativeTriggerWithExternal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more