GitRoot

craft your forge, build your project, grow your community freely
 1// SPDX-FileCopyrightText: 2026 Romain Maneschi <romain@gitroot.dev>
 2//
 3// SPDX-License-Identifier: MIT
 4
 5use std::collections::HashMap;
 6
 7use serde::{Deserialize, Serialize};
 8
 9#[derive(Debug, Deserialize, Serialize)]
10#[serde(rename_all = "camelCase")]
11pub struct Call {
12    pub plugin: String,
13    pub name: String,
14    pub args: HashMap<String, String>,
15}
16
17#[derive(Debug, Deserialize, Serialize)]
18#[serde(rename_all = "camelCase")]
19pub struct CallRes {
20    pub res: HashMap<String, String>,
21    pub err: String,
22}