mod.rs

Overview

This file serves as a central module aggregator and re-exporter for a set of related submodules concerning archival data structures and database helper utilities. It organizes and exposes key components related to accounts, blocks, messages, transactions, and SQLite helper functions within the archival context of the system. By doing so, it simplifies the import paths for other parts of the application that need to interact with these modules.

Modules

The file declares the following public submodules:

Re-exports

To facilitate easier access, the file re-exports selected types from these modules at the parent module level:

Re-exported Item

Original Module

Description

ArchAccount

account

Represents an archived account entity.

ArchBlock

block

Represents an archived blockchain block.

ArchMessage

message

Represents an archived message entity.

ArchTransaction

transaction

Represents an archived transaction entity.

FlatTransaction

transaction

Represents a flattened view of a transaction.

These re-exports allow other components to import these types directly from this module instead of accessing each submodule individually.

Implementation Details and Usage

Interactions with Other System Components

Visual Diagram

classDiagram
class mod {
+ArchAccount
+ArchBlock
+ArchMessage
+ArchTransaction
+FlatTransaction
}
class account {
<<module>>
}
class block {
<<module>>
}
class message {
<<module>>
}
class transaction {
<<module>>
}
class sqlite_helper {
<<module>>
}
mod --> account : contains
mod --> block : contains
mod --> message : contains
mod --> transaction : contains
mod --> sqlite_helper : contains
mod ..> ArchAccount : re-exports
mod ..> ArchBlock : re-exports
mod ..> ArchMessage : re-exports
mod ..> ArchTransaction : re-exports
mod ..> FlatTransaction : re-exports