pub struct HttpTrigger {Show 24 fields
pub route_path: String,
pub static_asset_config: Option<Box<Value>>,
pub http_method: HttpMethod,
pub authentication_resource_path: Option<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub request_type: HttpRequestType,
pub authentication_method: AuthenticationMethod,
pub is_static_website: bool,
pub workspaced_route: bool,
pub wrap_body: bool,
pub raw_string: bool,
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§
§route_path: StringThe URL route path that will trigger this endpoint (e.g., ‘api/myendpoint’). Must NOT start with a /.
static_asset_config: Option<Box<Value>>Configuration for serving static assets (s3 bucket, storage path, filename)
http_method: HttpMethod§authentication_resource_path: Option<String>Path to the resource containing authentication configuration (for api_key, basic_http, custom_script, signature methods)
summary: Option<String>Short summary describing the purpose of this trigger
description: Option<String>Detailed description of what this trigger does
request_type: HttpRequestType§authentication_method: AuthenticationMethod§is_static_website: boolIf true, serves static files from S3/storage instead of running a script
workspaced_route: boolIf true, the route includes the workspace ID in the path
wrap_body: boolIf true, wraps the request body in a ‘body’ parameter
raw_string: boolIf true, passes the request body as a raw string instead of parsing as JSON
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 HttpTrigger
impl HttpTrigger
pub fn new( route_path: String, http_method: HttpMethod, request_type: HttpRequestType, authentication_method: AuthenticationMethod, is_static_website: bool, workspaced_route: bool, wrap_body: bool, raw_string: bool, path: String, script_path: String, email: String, extra_perms: HashMap<String, bool>, workspace_id: String, edited_by: String, edited_at: String, is_flow: bool, mode: TriggerMode, ) -> HttpTrigger
Trait Implementations§
Source§impl Clone for HttpTrigger
impl Clone for HttpTrigger
Source§fn clone(&self) -> HttpTrigger
fn clone(&self) -> HttpTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more