NAC_Blockchain/nac-cee/src/integration/mod.rs

95 lines
1.9 KiB
Rust
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 集成模块
/// 与nac-constitution-state集成
pub mod state_integration {
//! 状态管理集成
//!
//! 此模块负责与nac-constitution-state模块集成
/// 状态集成接口(占位)
pub struct StateIntegration;
impl StateIntegration {
pub fn new() -> Self {
Self
}
}
impl Default for StateIntegration {
fn default() -> Self {
Self::new()
}
}
}
/// 与nac-constitution-clauses集成
pub mod clause_integration {
//! 条款管理集成
//!
//! 此模块负责与nac-constitution-clauses模块集成
/// 条款集成接口(占位)
pub struct ClauseIntegration;
impl ClauseIntegration {
pub fn new() -> Self {
Self
}
}
impl Default for ClauseIntegration {
fn default() -> Self {
Self::new()
}
}
}
/// 与nac-constitution-macros集成
pub mod macro_integration {
//! 宏系统集成
//!
//! 此模块负责与nac-constitution-macros模块集成
/// 宏集成接口(占位)
pub struct MacroIntegration;
impl MacroIntegration {
pub fn new() -> Self {
Self
}
}
impl Default for MacroIntegration {
fn default() -> Self {
Self::new()
}
}
}
/// 与CBPP共识集成
pub mod cbpp_integration {
//! CBPP共识集成
//!
//! 此模块负责与CBPP共识引擎集成
/// CBPP集成接口占位
pub struct CbppIntegration;
impl CbppIntegration {
pub fn new() -> Self {
Self
}
}
impl Default for CbppIntegration {
fn default() -> Self {
Self::new()
}
}
}
pub use clause_integration::ClauseIntegration;
pub use cbpp_integration::CbppIntegration;
pub use macro_integration::MacroIntegration;
pub use state_integration::StateIntegration;