pub struct PermissionDefinition {
pub assignment_domains: Vec<String>,
pub auth_id: i64,
pub description: String,
pub key: String,
pub name: String,
pub selections: Vec<PermissionDefinitionSelection>,
pub value_type: String,
pub extra: Map<String, Value>,
}Expand description
Definition of one assignable permission, not an effective grant. Combine the module key and permission key to identify it by name, or use authId in assignment endpoints.
Fields§
§assignment_domains: Vec<String>Currently always lists status, group_type_role, group_role and person. This is generic metadata and does not establish that every combination is accepted by assignment validation.
Allowed values: group_role, group_type_role, person, status.
auth_id: i64Numeric permission key
description: StringCurrently the same translated text as name; no separate explanatory description is supplied.
key: StringPermission key within its module
name: StringTranslated display name
selections: Vec<PermissionDefinitionSelection>Selectable data IDs, beginning with the all entry (-1). Empty for permissions without a data field. Values follow the underlying catalog order.
value_type: Stringboolean combines grants as a flag; multiple combines selected IDs; maximum selects the highest level. Selections describe available IDs, and -1 denotes unrestricted access including future values.
Allowed values: boolean, maximum, multiple.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.