oh right this was supposed to be http
This commit is contained in:
parent
1ca5aa2e97
commit
adaa020029
14 changed files with 1187 additions and 1040 deletions
|
|
@ -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>,
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue