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
use std::fmt::Debug;

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

/// Marker trait for a parameter value type.
///
/// This trait is automatically implemented for types that are `Clone + Debug +
/// DeserializeOwned + Serialize + Send + Sync + 'static`.
pub trait ParamsValue:
    Clone + Debug + PartialEq + DeserializeOwned + Serialize + Send + Sync + 'static
{
}

impl<T> ParamsValue for T where
    T: Clone + Debug + PartialEq + DeserializeOwned + Serialize + Send + Sync + 'static
{
}