peace_params 0.0.15

Constraints and specifications for parameters for the peace automation framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::fmt::Debug;

use serde::{de::DeserializeOwned, Serialize};

/// Field of an `Item::Params`.
///
/// This trait is automatically implemented by `#[derive(Value)]`.
///
/// This is *like* the [`Params`] trait, except it does not have the `FieldWise`
/// resolution functionality.
///
/// [`Params`]: crate::Params
pub trait ParamsFieldless {
    /// Convenience associated type for `ValueSpec<Self>`.
    type Spec: Clone + Debug + Serialize + DeserializeOwned + Send + Sync + 'static;
    /// The `Value` type, but with optional fields.
    type Partial: Clone + Debug + Default + Send + Sync + 'static;
}