pub struct EditWebsocketTrigger {Show 14 fields
pub url: String,
pub path: String,
pub script_path: String,
pub is_flow: bool,
pub filters: Vec<NewWebsocketTriggerFiltersInner>,
pub initial_messages: Option<Option<Vec<WebsocketTriggerInitialMessage>>>,
pub url_runnable_args: Option<HashMap<String, Value>>,
pub can_return_message: bool,
pub can_return_error_result: bool,
pub error_handler_path: Option<String>,
pub error_handler_args: Option<HashMap<String, Value>>,
pub retry: Option<Box<Retry>>,
pub email: Option<String>,
pub preserve_email: Option<bool>,
}Fields§
§url: StringThe WebSocket URL to connect to (can be a static URL or computed by a runnable)
path: StringThe unique path identifier for this trigger
script_path: StringPath to the script or flow to execute when a message is received
is_flow: boolTrue if script_path points to a flow, false if it points to a script
filters: Vec<NewWebsocketTriggerFiltersInner>Array of key-value filters to match incoming messages (only matching messages trigger the script)
initial_messages: Option<Option<Vec<WebsocketTriggerInitialMessage>>>Messages to send immediately after connecting (can be raw strings or computed by runnables)
url_runnable_args: Option<HashMap<String, Value>>The arguments to pass to the script or flow
can_return_message: boolIf true, the script can return a message to send back through the WebSocket
can_return_error_result: boolIf true, error results are sent back through the WebSocket
error_handler_path: Option<String>Path to a script or flow to run when the triggered job fails
error_handler_args: Option<HashMap<String, Value>>The arguments to pass to the script or flow
retry: Option<Box<Retry>>§email: Option<String>Email of the user who triggered jobs run as. Used during deployment to preserve the original trigger owner.
preserve_email: Option<bool>When true and the caller is a member of the ‘wm_deployers’ group, preserves the original email value instead of overwriting it.
Implementations§
Trait Implementations§
Source§impl Clone for EditWebsocketTrigger
impl Clone for EditWebsocketTrigger
Source§fn clone(&self) -> EditWebsocketTrigger
fn clone(&self) -> EditWebsocketTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more