fluxpro-engine 0.1.0

A feature-gated workflow and process engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::models::process_def_error::CreateProcessError;
use actix_web::HttpResponse;
use serde_json::json;

pub struct HttpResponseWrapper {
    pub response: HttpResponse,
}
impl HttpResponseWrapper {
    pub fn create_response(error: CreateProcessError) -> HttpResponseWrapper {
        HttpResponseWrapper {
            response: HttpResponse::InternalServerError().json(json!(error)),
        }
    }
}