pub struct NatsTrigger {Show 20 fields
pub nats_resource_path: String,
pub use_jetstream: bool,
pub stream_name: Option<String>,
pub consumer_name: Option<String>,
pub subjects: Vec<String>,
pub server_id: Option<String>,
pub last_server_ping: Option<String>,
pub error: Option<String>,
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 email: 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,
}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<String>JetStream stream name (required when use_jetstream is true)
consumer_name: Option<String>JetStream consumer name (required when use_jetstream is true)
subjects: Vec<String>Array of NATS subjects to subscribe to
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
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 path identifier for this trigger
script_path: StringPath to the script or flow to execute when triggered
email: StringEmail of the user who owns this trigger, used for 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: TriggerModeImplementations§
Source§impl NatsTrigger
impl NatsTrigger
Trait Implementations§
Source§impl Clone for NatsTrigger
impl Clone for NatsTrigger
Source§fn clone(&self) -> NatsTrigger
fn clone(&self) -> NatsTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more