pub struct EditNatsTrigger {Show 14 fields
pub nats_resource_path: String,
pub use_jetstream: bool,
pub stream_name: Option<Option<String>>,
pub consumer_name: Option<Option<String>>,
pub subjects: Vec<String>,
pub path: String,
pub script_path: String,
pub is_flow: bool,
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§
§nats_resource_path: StringPath to the NATS resource containing connection configuration
use_jetstream: boolIf true, uses NATS JetStream for durable message delivery
stream_name: Option<Option<String>>JetStream stream name (required when use_jetstream is true)
consumer_name: Option<Option<String>>JetStream consumer name (required when use_jetstream is true)
subjects: Vec<String>Array of NATS subjects to subscribe to
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
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§
Trait Implementations§
Source§impl Clone for EditNatsTrigger
impl Clone for EditNatsTrigger
Source§fn clone(&self) -> EditNatsTrigger
fn clone(&self) -> EditNatsTrigger
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 EditNatsTrigger
impl Debug for EditNatsTrigger
Source§impl Default for EditNatsTrigger
impl Default for EditNatsTrigger
Source§fn default() -> EditNatsTrigger
fn default() -> EditNatsTrigger
Source§impl<'de> Deserialize<'de> for EditNatsTrigger
impl<'de> Deserialize<'de> for EditNatsTrigger
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 EditNatsTrigger
impl PartialEq for EditNatsTrigger
Source§fn eq(&self, other: &EditNatsTrigger) -> bool
fn eq(&self, other: &EditNatsTrigger) -> bool
self and other values to be equal, and is used by ==.