Skip to main content

Module group_permissions

Module group_permissions 

Source

Structs§

AndCondition
An AndCondition evaluates to true if all the policies it contains evaluate to true.
AnyCondition
An AnyCondition evaluates to true if any of the contained policies evaluate to true.
GroupMutablePermissions
Represents the mutable permissions for a group.
MetadataAndCondition
An AndCondition evaluates to true if all the policies it contains evaluate to true.
MetadataAnyCondition
An AnyCondition evaluates to true if any of the contained policies evaluate to true.
PermissionsAndCondition
An AndCondition evaluates to true if all the policies it contains evaluate to true.
PermissionsAnyCondition
An AnyCondition evaluates to true if any of the contained policies evaluate to true.
PolicySet
Represents a set of policies for a group.

Enums§

BasePolicies
Represents the base policies for membership updates.
GroupMutablePermissionsError
Errors that can occur when working with GroupMutablePermissions.
MembershipPolicies
Represents the different types of membership policies.
MetadataBasePolicies
Represents the base policies for metadata updates.
MetadataPolicies
Represents the different types of metadata policies.
PermissionsBasePolicies
Represents the base policies for permissions updates.
PermissionsPolicies
Represents the different types of permissions policies.
PolicyError
Errors that can occur when working with policies.
PreconfiguredPolicies
Represents preconfigured policies for a group.

Traits§

MembershipPolicy
A trait for policies that can add/remove members and installations for the group.
MetadataPolicy
A trait for policies that can update Metadata for the group.
PermissionsPolicy
A trait for policies that can update Permissions for the group.

Functions§

extract_group_permissions
Extracts group permissions from an OpenMlsGroup.
is_policy_admin_only
Checks if a PolicySet is equivalent to the “Admin Only” preconfigured policy.
is_policy_default
Checks if a PolicySet is equivalent to the “All Members” preconfigured policy.