From 6f6b69946ec1915fd67a2227817b46407fe8e14d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 11 Feb 2021 13:47:01 +0100 Subject: [PATCH] docs: use type_text for config::acl::Role The list of roles is simply too long, so we use type_text to generate reasonable docs. --- src/config/acl.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/acl.rs b/src/config/acl.rs index e02ac5c7..3cf474e2 100644 --- a/src/config/acl.rs +++ b/src/config/acl.rs @@ -142,7 +142,9 @@ pub const ROLE_REMOTE_SYNC_OPERATOR: u64 = 0 /// NoAccess can be used to remove privileges from specific (sub-)paths pub const ROLE_NAME_NO_ACCESS: &str = "NoAccess"; -#[api()] +#[api( + type_text: "", +)] #[repr(u64)] #[derive(Serialize, Deserialize)] /// Enum representing roles via their [PRIVILEGES] combination.