pub struct GetWebsocketTrigger200Response {Show 30 fields
pub url: String,
pub server_id: Option<String>,
pub last_server_ping: Option<String>,
pub error: Option<String>,
pub filters: Vec<Value>,
pub filter_logic: Option<FilterLogic>,
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 heartbeat: Option<Box<WebsocketHeartbeat>>,
pub error_handler_path: Option<String>,
pub error_handler_args: Option<HashMap<String, Value>>,
pub retry: Option<Box<Retry>>,
pub path: String,
pub script_path: String,
pub permissioned_as: String,
pub extra_perms: HashMap<String, bool>,
pub workspace_id: String,
pub edited_by: String,
pub edited_at: String,
pub is_flow: bool,
pub mode: TriggerMode,
pub labels: Option<Vec<String>>,
pub draft_only: Option<bool>,
pub is_draft: bool,
pub draft_saved_at: Option<String>,
pub no_deployed: Option<bool>,
pub draft: Option<HashMap<String, Value>>,
pub other_drafts_users: Option<Vec<UserDraftOverlayOtherDraftsUsersInner>>,
}Fields§
§url: StringThe WebSocket URL to connect to (can be a static URL or computed by a runnable)
server_id: Option<String>ID of the server currently handling this trigger (internal)
last_server_ping: Option<String>Timestamp of last server heartbeat (internal)
error: Option<String>Last error message if the trigger failed
filters: Vec<Value>Array of key-value filters to match incoming messages (only matching messages trigger the script)
filter_logic: Option<FilterLogic>Logic to apply when evaluating filters. ‘and’ requires all filters to match, ‘or’ requires any filter to match.
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
heartbeat: Option<Box<WebsocketHeartbeat>>§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>>§path: StringThe unique Windmill path for this trigger. Must be of the form u/<user>/<path> or f/<folder>/<path>. This is the trigger object path, not the HTTP route path.
script_path: StringPath to the script or flow to execute when triggered
permissioned_as: StringThe user or group this trigger runs as (permissioned_as)
extra_perms: HashMap<String, bool>Additional permissions for this trigger
workspace_id: StringThe workspace this trigger belongs to
edited_by: StringUsername of the last person who edited this trigger
edited_at: StringTimestamp of the last edit
is_flow: boolTrue if script_path points to a flow, false if it points to a script
mode: TriggerMode§labels: Option<Vec<String>>§draft_only: Option<bool>True when this row is a per-user draft with no deployed trigger at the same path. Set by list endpoints when include_draft_only=true synthesizes the row from the draft. Frontend renders a "Draft" badge.
is_draft: bool§draft_saved_at: Option<String>§no_deployed: Option<bool>§draft: Option<HashMap<String, Value>>§other_drafts_users: Option<Vec<UserDraftOverlayOtherDraftsUsersInner>>Other workspace users (and the legacy NULL-email row, if any) with a saved draft at the same path. Populated only on the authed user’s "get by path" responses for kinds the editor surfaces a fork banner for (script, flow, app, raw_app). Empty / omitted for kinds without that UI.
Implementations§
Source§impl GetWebsocketTrigger200Response
impl GetWebsocketTrigger200Response
pub fn new( url: String, filters: Vec<Value>, can_return_message: bool, can_return_error_result: bool, path: String, script_path: String, permissioned_as: String, extra_perms: HashMap<String, bool>, workspace_id: String, edited_by: String, edited_at: String, is_flow: bool, mode: TriggerMode, is_draft: bool, ) -> GetWebsocketTrigger200Response
Trait Implementations§
Source§impl Clone for GetWebsocketTrigger200Response
impl Clone for GetWebsocketTrigger200Response
Source§fn clone(&self) -> GetWebsocketTrigger200Response
fn clone(&self) -> GetWebsocketTrigger200Response
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GetWebsocketTrigger200Response
impl Default for GetWebsocketTrigger200Response
Source§fn default() -> GetWebsocketTrigger200Response
fn default() -> GetWebsocketTrigger200Response
Source§impl<'de> Deserialize<'de> for GetWebsocketTrigger200Response
impl<'de> Deserialize<'de> for GetWebsocketTrigger200Response
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>,
Source§impl PartialEq for GetWebsocketTrigger200Response
impl PartialEq for GetWebsocketTrigger200Response
Source§fn eq(&self, other: &GetWebsocketTrigger200Response) -> bool
fn eq(&self, other: &GetWebsocketTrigger200Response) -> bool
self and other values to be equal, and is used by ==.