diff options
author | yuzu <yuzu@b9215c17-b818-4693-b096-d1e41a411fef> | 2025-07-12 22:17:26 +0000 |
---|---|---|
committer | yuzu <yuzu@b9215c17-b818-4693-b096-d1e41a411fef> | 2025-07-12 22:17:26 +0000 |
commit | e33f9a59f875edf1240ca80c1014235296ff3cbf (patch) | |
tree | 5777c00bafad650d6be84f42f51ba4f873d92c53 /src/model.rs | |
parent | 78608add1c69a877b76a05147f6c26b7abe66669 (diff) | |
download | salaryman-e33f9a59f875edf1240ca80c1014235296ff3cbf.tar.gz salaryman-e33f9a59f875edf1240ca80c1014235296ff3cbf.tar.bz2 salaryman-e33f9a59f875edf1240ca80c1014235296ff3cbf.zip |
add additional endpoints; change out mutexes for rwlocks
git-svn-id: svn+ssh://diminuette.aengel.lesbianunix.dev/salaryman/trunk@15 b9215c17-b818-4693-b096-d1e41a411fef
Diffstat (limited to 'src/model.rs')
-rw-r--r-- | src/model.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/model.rs b/src/model.rs new file mode 100644 index 0000000..578d9b4 --- /dev/null +++ b/src/model.rs @@ -0,0 +1,31 @@ +use schemars::JsonSchema; +use serde::{Deserialize, Serialize}; +use std::net::IpAddr; +use std::path::PathBuf; +use uuid::Uuid; + +#[derive(Serialize, Deserialize, JsonSchema, Debug)] +pub struct UpdateConf { + pub address: Option<IpAddr>, + pub port: Option<u16>, +} + +#[derive(Serialize, Deserialize, JsonSchema, Debug)] +pub struct StdinBuffer { + pub stdin: String, + pub endl: Option<bool>, +} + +#[derive(Serialize, Deserialize, JsonSchema, Debug)] +pub struct ServicePath { + pub service_uuid: Uuid, +} + +#[derive(Serialize, Deserialize, JsonSchema, Debug)] +pub struct NewService { + pub name: Option<String>, + pub command: Option<String>, + pub args: Option<Option<String>>, + pub directory: Option<Option<PathBuf>>, + pub autostart: Option<bool>, +} |