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.
This commit is contained in:
Dietmar Maurer 2021-02-11 13:47:01 +01:00
parent 5b7f44555e
commit 6f6b69946e
1 changed files with 3 additions and 1 deletions

View File

@ -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: "<role>",
)]
#[repr(u64)]
#[derive(Serialize, Deserialize)]
/// Enum representing roles via their [PRIVILEGES] combination.