pub struct NewMqttTrigger {Show 16 fields
pub mqtt_resource_path: String,
pub subscribe_topics: Vec<MqttSubscribeTopic>,
pub client_id: Option<Option<String>>,
pub v3_config: Option<Box<MqttV3Config>>,
pub v5_config: Option<Box<MqttV5Config>>,
pub client_version: Option<MqttClientVersion>,
pub path: String,
pub script_path: String,
pub is_flow: bool,
pub mode: Option<TriggerMode>,
pub error_handler_path: Option<String>,
pub error_handler_args: Option<HashMap<String, Value>>,
pub retry: Option<Box<Retry>>,
pub permissioned_as: Option<String>,
pub preserve_permissioned_as: Option<bool>,
pub labels: Option<Vec<String>>,
}Fields§
§mqtt_resource_path: StringPath to the MQTT resource containing broker connection configuration
subscribe_topics: Vec<MqttSubscribeTopic>Array of MQTT topics to subscribe to, each with topic name and QoS level
client_id: Option<Option<String>>MQTT client ID for this connection
v3_config: Option<Box<MqttV3Config>>§v5_config: Option<Box<MqttV5Config>>§client_version: Option<MqttClientVersion>§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 a message is received
is_flow: boolTrue if script_path points to a flow, false if it points to a script
mode: Option<TriggerMode>§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>>§permissioned_as: Option<String>The user or group this trigger runs as. Used during deployment to preserve the original trigger owner.
preserve_permissioned_as: Option<bool>When true and the caller is a member of the ‘wm_deployers’ group, preserves the original permissioned_as value instead of overwriting it.
labels: Option<Vec<String>>Implementations§
Source§impl NewMqttTrigger
impl NewMqttTrigger
pub fn new( mqtt_resource_path: String, subscribe_topics: Vec<MqttSubscribeTopic>, path: String, script_path: String, is_flow: bool, ) -> NewMqttTrigger
Trait Implementations§
Source§impl Clone for NewMqttTrigger
impl Clone for NewMqttTrigger
Source§fn clone(&self) -> NewMqttTrigger
fn clone(&self) -> NewMqttTrigger
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NewMqttTrigger
impl Debug for NewMqttTrigger
Source§impl Default for NewMqttTrigger
impl Default for NewMqttTrigger
Source§fn default() -> NewMqttTrigger
fn default() -> NewMqttTrigger
Source§impl<'de> Deserialize<'de> for NewMqttTrigger
impl<'de> Deserialize<'de> for NewMqttTrigger
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 NewMqttTrigger
impl PartialEq for NewMqttTrigger
Source§fn eq(&self, other: &NewMqttTrigger) -> bool
fn eq(&self, other: &NewMqttTrigger) -> bool
self and other values to be equal, and is used by ==.