greenhouse_core 0.2.0

greenhouse_core
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use greenhouse_macro::IntoJsonResponse;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, IntoJsonResponse)]
pub struct OperationsDto {
    pub operations: Vec<String>,
}

impl From<Vec<String>> for OperationsDto {
    fn from(operations: Vec<String>) -> Self {
        Self { operations }
    }
}