Line data Source code
1 : pub mod mgmt_api;
2 : pub mod page_service;
3 :
4 : /// For timeline_block_unblock_gc, distinguish the two different operations. This could be a bool.
5 : // If file structure is per-kind not per-feature then where to put this?
6 : #[derive(Clone, Copy)]
7 : pub enum BlockUnblock {
8 : Block,
9 : Unblock,
10 : }
11 :
12 : impl std::fmt::Display for BlockUnblock {
13 0 : fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
14 0 : let s = match self {
15 0 : BlockUnblock::Block => "block",
16 0 : BlockUnblock::Unblock => "unblock",
17 : };
18 0 : f.write_str(s)
19 0 : }
20 : }
|