Struct permissions::Subject
zaun_community_protocol::permissions::Subject · Struct
pub struct Subject<'a> { … }The member whose permissions are resolved.
Fields
Section titled “Fields”id: MemberId
Section titled “id: MemberId”The member id (matches member overrides).
is_owner: bool
Section titled “is_owner: bool”Whether this member is the owner bound in the current descriptor.
state: MembershipState
Section titled “state: MembershipState”The lifecycle state.
roles: &'a [Role]
Section titled “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>
Section titled “timeout_until_ms: Option<u64>”members.timeout_until in ms since the epoch.
admitted_at_ms: u64
Section titled “admitted_at_ms: u64”When the member was admitted (left Pending), in ms since the epoch. Drives the
waiting period and a lockdown’s restrict_newcomers window.
Trait implementations
Section titled “Trait implementations”Clone, Copy, Debug