Skip to main content

tor_netdoc/doc/netstatus/
md.rs

1//! Implementation for microdesc consensus documents.
2//
3// Read this file in conjunction with `each_variety.rs`.
4// See "module scope" ns_variety_definition_macros.rs.
5
6use super::*;
7
8// Import `each_variety.rs`, appropriately variegated
9ns_do_variety_md! {}
10
11define_constant_string! {
12    /// The `md` keyword in a microdescriptor consensus heading line
13    ///
14    /// This type is one of the fields in `NetworkStatusVersionItem`.
15    ///
16    /// md consensuses start with `network-status-version 3 md ...`
17    ///
18    /// In our terminology this is an `md` consensus, in but the protocol it's `microdesc`
19    /// So in *this* variety, the variety it's the fixed string `microdesc`.
20    VarietyKeyword = "microdesc";
21}