pub struct NewHttpTrigger {Show 20 fields
pub path: String,
pub script_path: String,
pub route_path: String,
pub workspaced_route: Option<bool>,
pub summary: Option<String>,
pub description: Option<String>,
pub static_asset_config: Option<Box<NewHttpTriggerStaticAssetConfig>>,
pub is_flow: bool,
pub http_method: HttpMethod,
pub authentication_resource_path: Option<String>,
pub is_async: Option<bool>,
pub request_type: Option<HttpRequestType>,
pub authentication_method: AuthenticationMethod,
pub is_static_website: bool,
pub wrap_body: Option<bool>,
pub mode: Option<TriggerMode>,
pub raw_string: Option<bool>,
pub error_handler_path: Option<String>,
pub error_handler_args: Option<HashMap<String, Value>>,
pub retry: Option<Box<Retry>>,
}Fields§
§path: StringThe unique path identifier for this trigger
script_path: StringPath to the script or flow to execute when triggered
route_path: StringThe URL route path that will trigger this endpoint (e.g., ‘api/myendpoint’). Must NOT start with a /.
workspaced_route: Option<bool>If true, the route includes the workspace ID in the path
summary: Option<String>Short summary describing the purpose of this trigger
description: Option<String>Detailed description of what this trigger does
static_asset_config: Option<Box<NewHttpTriggerStaticAssetConfig>>§is_flow: boolTrue if script_path points to a flow, false if it points to a script
http_method: HttpMethod§authentication_resource_path: Option<String>Path to the resource containing authentication configuration (for api_key, basic_http, custom_script, signature methods)
is_async: Option<bool>Deprecated, use request_type instead
request_type: Option<HttpRequestType>§authentication_method: AuthenticationMethod§is_static_website: boolIf true, serves static files from S3/storage instead of running a script
wrap_body: Option<bool>If true, wraps the request body in a ‘body’ parameter
mode: Option<TriggerMode>§raw_string: Option<bool>If 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>>Implementations§
Source§impl NewHttpTrigger
impl NewHttpTrigger
pub fn new( path: String, script_path: String, route_path: String, is_flow: bool, http_method: HttpMethod, authentication_method: AuthenticationMethod, is_static_website: bool, ) -> NewHttpTrigger
Trait Implementations§
Source§impl Clone for NewHttpTrigger
impl Clone for NewHttpTrigger
Source§fn clone(&self) -> NewHttpTrigger
fn clone(&self) -> NewHttpTrigger
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more