oh right this was supposed to be http

This commit is contained in:
Qyriad 2026-03-30 13:39:56 +02:00
parent 1ca5aa2e97
commit adaa020029
14 changed files with 1187 additions and 1040 deletions

View file

@ -3,6 +3,7 @@ use std::ops::Deref;
use crate::prelude::*;
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
mod impls;
@ -11,6 +12,7 @@ mod impls;
/// This type does not provide a [`Default`] impl, however.
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[derive(Deserialize, Serialize)]
#[derive(ToSchema)]
#[serde(untagged)]
pub enum ConvenientAttrPath {
Dotted(Box<str>),
@ -47,8 +49,9 @@ impl ConvenientAttrPath {
}
}
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, PartialOrd)]
#[derive(Deserialize, Serialize)]
#[derive(ToSchema)]
#[serde(untagged)]
pub enum NixLiteral {
String(String),
@ -70,7 +73,7 @@ impl NixLiteral {
#[serde(tag = "action", content = "args", rename_all = "snake_case")]
// FIXME: rename to not confuse with the clap argument type.
pub enum DaemonCmd {
Append {
Set {
name: ConvenientAttrPath,
value: Box<NixLiteral>,
},