pub struct InviteRequest<'a> {
pub rule: InviteCreation,
pub default_roles: &'a [Role],
pub requires_approval: bool,
pub pre_approved: bool,
pub overrides_stricter: bool,
}Expand description
The parts of an invite.create body the checks need.
Fields§
§rule: InviteCreationThe policy’s invite_creation rule.
default_roles: &'a [Role]The roles named by default_role_ids, joined from the role table.
requires_approval: boolrequires_approval.
pre_approved: boolpre_approved.
overrides_stricter: boolWhether admission_overrides (if any) are all at least as strict as the policy;
the engine compares the fields.
Trait Implementations§
Source§impl<'a> Clone for InviteRequest<'a>
impl<'a> Clone for InviteRequest<'a>
Source§fn clone(&self) -> InviteRequest<'a>
fn clone(&self) -> InviteRequest<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for InviteRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for InviteRequest<'a>
impl<'a> RefUnwindSafe for InviteRequest<'a>
impl<'a> Send for InviteRequest<'a>
impl<'a> Sync for InviteRequest<'a>
impl<'a> Unpin for InviteRequest<'a>
impl<'a> UnsafeUnpin for InviteRequest<'a>
impl<'a> UnwindSafe for InviteRequest<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more