pub struct NewAmqpTrigger {Show 14 fields
pub amqp_resource_path: String,
pub queue_name: String,
pub exchange: Option<Box<AmqpExchange>>,
pub options: Option<Box<AmqpOptions>>,
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§
§amqp_resource_path: StringPath to the AMQP resource containing broker connection configuration
queue_name: StringName of the queue to consume messages from
exchange: Option<Box<AmqpExchange>>§options: Option<Box<AmqpOptions>>§path: StringThe unique Windmill path for this trigger. Must be of the form u/<user>/<path> or f/<folder>/<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§
Trait Implementations§
Source§impl Clone for NewAmqpTrigger
impl Clone for NewAmqpTrigger
Source§fn clone(&self) -> NewAmqpTrigger
fn clone(&self) -> NewAmqpTrigger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NewAmqpTrigger
impl Debug for NewAmqpTrigger
Source§impl Default for NewAmqpTrigger
impl Default for NewAmqpTrigger
Source§fn default() -> NewAmqpTrigger
fn default() -> NewAmqpTrigger
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NewAmqpTrigger
impl<'de> Deserialize<'de> for NewAmqpTrigger
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 NewAmqpTrigger
impl PartialEq for NewAmqpTrigger
Source§impl Serialize for NewAmqpTrigger
impl Serialize for NewAmqpTrigger
impl StructuralPartialEq for NewAmqpTrigger
Auto Trait Implementations§
impl Freeze for NewAmqpTrigger
impl RefUnwindSafe for NewAmqpTrigger
impl Send for NewAmqpTrigger
impl Sync for NewAmqpTrigger
impl Unpin for NewAmqpTrigger
impl UnsafeUnpin for NewAmqpTrigger
impl UnwindSafe for NewAmqpTrigger
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