aorist_primitives 0.0.12

Primitive macros for the aorist project.
Documentation
#[cfg(feature = "python")]
use pyo3::prelude::*;
use serde::{Deserialize, Serialize};

#[cfg_attr(feature = "python", pyclass)]
#[derive(PartialEq, Deserialize, Serialize, Debug, Clone, Hash)]
pub struct AlluxioConfig {
    pub server: String,
    pub server_cli: String,
    pub rpc_port: usize,
    pub api_port: usize,
    pub directory: String,
}

#[cfg(feature = "python")]
#[pymethods]
impl AlluxioConfig {
    #[new]
    fn new(
        server: String,
        server_cli: String,
        rpc_port: usize,
        api_port: usize,
        directory: String,
    ) -> Self {
        AlluxioConfig {
            server: server,
            server_cli: server_cli,
            rpc_port,
            api_port,
            directory: directory,
        }
    }
}