pub struct NewPostgresTrigger {Show 14 fields
pub replication_slot_name: Option<String>,
pub publication_name: Option<String>,
pub path: String,
pub script_path: String,
pub is_flow: bool,
pub mode: Option<TriggerMode>,
pub postgres_resource_path: String,
pub publication: Option<Box<PublicationData>>,
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§
§replication_slot_name: Option<String>Name of the PostgreSQL logical replication slot to use
publication_name: Option<String>Name of the PostgreSQL publication to subscribe to for change data capture
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 database changes are detected
is_flow: boolTrue if script_path points to a flow, false if it points to a script
mode: Option<TriggerMode>§postgres_resource_path: StringPath to the PostgreSQL resource containing connection configuration
publication: Option<Box<PublicationData>>§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 NewPostgresTrigger
impl Clone for NewPostgresTrigger
Source§fn clone(&self) -> NewPostgresTrigger
fn clone(&self) -> NewPostgresTrigger
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 NewPostgresTrigger
impl Debug for NewPostgresTrigger
Source§impl Default for NewPostgresTrigger
impl Default for NewPostgresTrigger
Source§fn default() -> NewPostgresTrigger
fn default() -> NewPostgresTrigger
Source§impl<'de> Deserialize<'de> for NewPostgresTrigger
impl<'de> Deserialize<'de> for NewPostgresTrigger
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 NewPostgresTrigger
impl PartialEq for NewPostgresTrigger
Source§fn eq(&self, other: &NewPostgresTrigger) -> bool
fn eq(&self, other: &NewPostgresTrigger) -> bool
self and other values to be equal, and is used by ==.