fluxpro-engine 0.1.10

A feature-gated workflow and process engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Identifier returned after a process definition is persisted.

use serde::Serialize;

/// Response wrapper for the UUID string of a persisted process definition.
#[derive(Serialize)]
pub struct ProcessId {
    /// UUID string of the persisted process definition.
    pub id: String,
}

impl ProcessId {
    /// Wraps the persisted definition ID without additional validation.
    pub fn new(id: String) -> Self {
        Self { id }
    }
}