Structs§
- Represents a block. Also can represent an unblock. NOT serializable and NOT pub fields by design.
try_new
MUST be the only entrypoint to build aBlock
as this enforces that the start/end times are valid according to invariants the SQL queries rely on to avoid corrupting the database.
Enums§
- Target of a block. Each target type has an ID and associated reason.
- Reason why we might want to block a cell.
- Reason why we might want to block an IP.
- Reason why we might want to block a node.