awt 0.1.0

A simulation engine which can emulate a client/server with multiple requests.
use serde::Deserialize;

use crate::Attribute;

#[derive(Debug, Clone, PartialEq, Eq, Deserialize)]
pub struct Server {
    /// Default is an empty attribute array.
    #[serde(default)]
    pub attributes: Vec<Attribute>,
    pub quantity: usize,
}

impl From<&Server> for crate::Server {
    fn from(s: &Server) -> Self {
        Self {
            attributes: s.attributes.clone(),
            ..Self::default()
        }
    }
}