pub struct NewNatsTrigger {Show 14 fields
pub path: String,
pub script_path: String,
pub is_flow: bool,
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 mode: Option<TriggerMode>,
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§
§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
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
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>>§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 NewNatsTrigger
impl Clone for NewNatsTrigger
Source§fn clone(&self) -> NewNatsTrigger
fn clone(&self) -> NewNatsTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more