#[non_exhaustive]pub struct AuthzFacts {
pub grant: Option<GrantRef>,
pub owner: bool,
pub caller_view: CallerView,
pub authority_generation: Option<u64>,
}Expand description
Facts the Authorizer established, carried into apply as
preconditions. M1 establishes owner; M2 (WP-2.6) sets grant so the
pipeline can require grant.epoch when it commits.
Non-exhaustive: start from AuthzFacts::default() and set fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.grant: Option<GrantRef>The grant that authorized the operation, if any.
owner: boolWhether the principal owns the namespace.
caller_view: CallerViewThe caller’s view; Writer is honoured only when the
authorizer’s role is Authority.
Generation of a trusted Authority allowance; preserved through retries.
Trait Implementations§
Source§impl Clone for AuthzFacts
impl Clone for AuthzFacts
Source§impl Debug for AuthzFacts
impl Debug for AuthzFacts
Source§impl Default for AuthzFacts
impl Default for AuthzFacts
impl Eq for AuthzFacts
Source§impl PartialEq for AuthzFacts
impl PartialEq for AuthzFacts
impl StructuralPartialEq for AuthzFacts
Auto Trait Implementations§
impl Freeze for AuthzFacts
impl RefUnwindSafe for AuthzFacts
impl Send for AuthzFacts
impl Sync for AuthzFacts
impl Unpin for AuthzFacts
impl UnsafeUnpin for AuthzFacts
impl UnwindSafe for AuthzFacts
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