(mode: &str)
| 2149 | } |
| 2150 | |
| 2151 | fn parse_handler_mode(mode: &str) -> napi::Result<RustTaskHandlerMode> { |
| 2152 | match mode.trim().to_ascii_lowercase().as_str() { |
| 2153 | "internal" => Ok(RustTaskHandlerMode::Internal), |
| 2154 | "external" => Ok(RustTaskHandlerMode::External), |
| 2155 | "hybrid" => Ok(RustTaskHandlerMode::Hybrid), |
| 2156 | _ => Err(napi::Error::from_reason(format!( |
| 2157 | "Invalid handler mode '{}'. Must be: internal, external, or hybrid", |
| 2158 | mode |
| 2159 | ))), |
| 2160 | } |
| 2161 | } |
| 2162 | |
| 2163 | fn s3_config_to_core(js: &JsS3BackendConfig) -> a3s_code_core::S3BackendConfig { |
| 2164 | let mut cfg = a3s_code_core::S3BackendConfig::new( |
no test coverage detected