pub struct HostAuthorityView<'a> {
pub principal: Option<&'a AuthenticatedPrincipal<'a>>,
pub project: &'a Project,
pub memberships: &'a [AdmittedMembership<'a>],
pub review_grants: &'a [ReviewGrant<'a>],
pub current_document: &'a DocumentRevision,
pub generation: u64,
pub now_unix: u64,
pub limits: AuthoringLimits,
}Expand description
Borrow the current native state, never a saved or request-supplied snapshot. The owner must hold its lock/transaction until mutation and evidence commit.
Fields§
§principal: Option<&'a AuthenticatedPrincipal<'a>>§project: &'a Project§memberships: &'a [AdmittedMembership<'a>]§review_grants: &'a [ReviewGrant<'a>]§current_document: &'a DocumentRevision§generation: u64Bump for any change of membership, identifier binding, review or session.
now_unix: u64§limits: AuthoringLimitsTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HostAuthorityView<'a>
impl<'a> RefUnwindSafe for HostAuthorityView<'a>
impl<'a> Send for HostAuthorityView<'a>
impl<'a> Sync for HostAuthorityView<'a>
impl<'a> Unpin for HostAuthorityView<'a>
impl<'a> UnsafeUnpin for HostAuthorityView<'a>
impl<'a> UnwindSafe for HostAuthorityView<'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