pub struct EditNatsTrigger {
pub nats_resource_path: String,
pub use_jetstream: bool,
pub stream_name: Option<String>,
pub consumer_name: 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>>,
}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
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
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>>Implementations§
Trait Implementations§
Source§impl Clone for EditNatsTrigger
impl Clone for EditNatsTrigger
Source§fn clone(&self) -> EditNatsTrigger
fn clone(&self) -> EditNatsTrigger
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EditNatsTrigger
impl PartialEq for EditNatsTrigger
Source§impl Serialize for EditNatsTrigger
impl Serialize for EditNatsTrigger
impl StructuralPartialEq for EditNatsTrigger
Auto Trait Implementations§
impl Freeze for EditNatsTrigger
impl RefUnwindSafe for EditNatsTrigger
impl Send for EditNatsTrigger
impl Sync for EditNatsTrigger
impl Unpin for EditNatsTrigger
impl UnwindSafe for EditNatsTrigger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more