schema2000 0.1.0

Schema2000 is a crate derive a JSON schema from given JSON objects
Documentation
use std::collections::BTreeSet;

use crate::model::node_type::NodeType;

#[derive(Clone, Debug, PartialEq, Eq, PartialOrd, Ord)]
pub struct AnyNode {
    pub nodes: BTreeSet<NodeType>,
}

impl AnyNode {
    #[must_use]
    pub fn new(nodes: BTreeSet<NodeType>) -> Self {
        Self { nodes }
    }
}

impl Default for AnyNode {
    fn default() -> Self {
        AnyNode::new(BTreeSet::new())
    }
}