src/backup.rs; use a macro to define PROXMOX_BACKUP_PROTOCOL_ID_V1

So that we can include it in static doc strings.
This commit is contained in:
Dietmar Maurer
2019-06-05 08:41:20 +02:00
parent c9ec0956cf
commit 986bef16be
4 changed files with 12 additions and 6 deletions

View File

@ -102,7 +102,10 @@
//!
//! Not sure if this is better. TODO
pub const PROXMOX_BACKUP_PROTOCOL_ID_V1: &str = "proxmox-backup-protocol-v1";
#[macro_export]
macro_rules! PROXMOX_BACKUP_PROTOCOL_ID_V1 {
() => { "proxmox-backup-protocol-v1" }
}
mod chunk_stream;
pub use chunk_stream::*;