ic-query 0.2.18

Internet Computer query CLI for NNS, SNS, and related public network metadata
Documentation
use crate::ic_registry::proto::{DataCenterRecord, NodeOperatorRecord, NodeRecord, SubnetRecord};
use std::collections::{BTreeMap, BTreeSet};

///
/// RegistryRelationInventory
///
pub(in crate::ic_registry) struct RegistryRelationInventory {
    pub(in crate::ic_registry) node_principals: BTreeSet<String>,
    pub(in crate::ic_registry) node_records: BTreeMap<String, NodeRecord>,
    pub(in crate::ic_registry) node_operator_records: BTreeMap<String, NodeOperatorRecord>,
    pub(in crate::ic_registry) subnet_records: BTreeMap<String, SubnetRecord>,
    pub(in crate::ic_registry) data_center_records: BTreeMap<String, DataCenterRecord>,
}

///
/// RegistryRelationInventoryScope
///
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub(in crate::ic_registry) enum RegistryRelationInventoryScope {
    BaseRelations,
    WithDataCenters,
}