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:
parent
5b7f44555e
commit
6f6b69946e
|
@ -142,7 +142,9 @@ pub const ROLE_REMOTE_SYNC_OPERATOR: u64 = 0
|
||||||
/// NoAccess can be used to remove privileges from specific (sub-)paths
|
/// NoAccess can be used to remove privileges from specific (sub-)paths
|
||||||
pub const ROLE_NAME_NO_ACCESS: &str = "NoAccess";
|
pub const ROLE_NAME_NO_ACCESS: &str = "NoAccess";
|
||||||
|
|
||||||
#[api()]
|
#[api(
|
||||||
|
type_text: "<role>",
|
||||||
|
)]
|
||||||
#[repr(u64)]
|
#[repr(u64)]
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
/// Enum representing roles via their [PRIVILEGES] combination.
|
/// Enum representing roles via their [PRIVILEGES] combination.
|
||||||
|
|
Loading…
Reference in New Issue