Struct permissions::invites::InviteRequest
zaun_community_protocol::permissions::invites::InviteRequest · Struct
pub struct InviteRequest<'a> { … }The parts of an invite.create body the checks need.
Fields
Section titled “Fields”rule: InviteCreation
Section titled “rule: InviteCreation”The policy’s invite_creation rule.
default_roles: &'a [Role]
Section titled “default_roles: &'a [Role]”The roles named by default_role_ids, joined from the role table.
requires_approval: bool
Section titled “requires_approval: bool”requires_approval.
pre_approved: bool
Section titled “pre_approved: bool”pre_approved.
overrides_stricter: bool
Section titled “overrides_stricter: bool”Whether admission_overrides (if any) are all at least as strict as the policy;
the engine compares the fields.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug