pub struct GcpTriggerData {Show 16 fields
pub gcp_resource_path: String,
pub subscription_mode: SubscriptionMode,
pub topic_id: String,
pub subscription_id: Option<String>,
pub base_endpoint: Option<String>,
pub delivery_type: Option<DeliveryType>,
pub delivery_config: Option<Box<PushConfig>>,
pub path: String,
pub script_path: String,
pub is_flow: bool,
pub mode: Option<TriggerMode>,
pub auto_acknowledge_msg: Option<bool>,
pub ack_deadline: Option<i32>,
pub error_handler_path: Option<String>,
pub error_handler_args: Option<HashMap<String, Value>>,
pub retry: Option<Box<Retry>>,
}Expand description
GcpTriggerData : Data for creating or updating a Google Cloud Pub/Sub trigger.
Fields§
§gcp_resource_path: StringPath to the GCP resource containing service account credentials for authentication.
subscription_mode: SubscriptionMode§topic_id: StringGoogle Cloud Pub/Sub topic ID to subscribe to.
subscription_id: Option<String>Google Cloud Pub/Sub subscription ID.
base_endpoint: Option<String>Base URL for push delivery endpoint.
delivery_type: Option<DeliveryType>§delivery_config: Option<Box<PushConfig>>§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.
mode: Option<TriggerMode>§auto_acknowledge_msg: Option<bool>If true, automatically acknowledge messages after processing.
ack_deadline: Option<i32>Time in seconds within which the message must be acknowledged. If not provided, defaults to the subscription’s acknowledgment deadline (600 seconds).
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§
Source§impl GcpTriggerData
impl GcpTriggerData
Sourcepub fn new(
gcp_resource_path: String,
subscription_mode: SubscriptionMode,
topic_id: String,
path: String,
script_path: String,
is_flow: bool,
) -> GcpTriggerData
pub fn new( gcp_resource_path: String, subscription_mode: SubscriptionMode, topic_id: String, path: String, script_path: String, is_flow: bool, ) -> GcpTriggerData
Data for creating or updating a Google Cloud Pub/Sub trigger.
Trait Implementations§
Source§impl Clone for GcpTriggerData
impl Clone for GcpTriggerData
Source§fn clone(&self) -> GcpTriggerData
fn clone(&self) -> GcpTriggerData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more