pub struct Subject<'a> {
pub id: MemberId,
pub is_owner: bool,
pub state: MembershipState,
pub roles: &'a [Role],
pub timeout_until_ms: Option<u64>,
pub admitted_at_ms: u64,
}Expand description
The member whose permissions are resolved.
Fields§
§id: MemberIdThe member id (matches member overrides).
is_owner: boolWhether this member is the owner bound in the current descriptor.
state: MembershipStateThe lifecycle state (§3.0).
roles: &'a [Role]The roles the member holds, joined from the role table. @everyone need not be
listed (its permissions come from Context::everyone); listing it is harmless.
timeout_until_ms: Option<u64>members.timeout_until in ms since the epoch.
admitted_at_ms: u64When the member was admitted (left Pending), in ms since the epoch. Drives the
waiting period (specification §6.4) and a lockdown’s restrict_newcomers window.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Subject<'a>
impl<'a> RefUnwindSafe for Subject<'a>
impl<'a> Send for Subject<'a>
impl<'a> Sync for Subject<'a>
impl<'a> Unpin for Subject<'a>
impl<'a> UnsafeUnpin for Subject<'a>
impl<'a> UnwindSafe for Subject<'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