pub struct AuthorizationRequest<'a> {
pub actor: Option<ActorId>,
pub operation: Operation,
pub object: ObjectId,
pub metadata: &'a Metadata,
pub parent: Option<ParentReference<'a>>,
}Expand description
A request to authorize an operation.
Fields§
§actor: Option<ActorId>The actor attempting the operation, if any.
operation: OperationThe operation being attempted.
object: ObjectIdThe primary target object.
metadata: &'a MetadataThe target object’s metadata, for the policy to inspect.
parent: Option<ParentReference<'a>>The target object’s parent, when it has one.
Policies may inspect it to implement parent-directory semantics (for example write access on the containing directory for moves and deletions).
Trait Implementations§
Source§impl<'a> Clone for AuthorizationRequest<'a>
impl<'a> Clone for AuthorizationRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuthorizationRequest<'a>
impl<'a> RefUnwindSafe for AuthorizationRequest<'a>
impl<'a> Send for AuthorizationRequest<'a>
impl<'a> Sync for AuthorizationRequest<'a>
impl<'a> Unpin for AuthorizationRequest<'a>
impl<'a> UnsafeUnpin for AuthorizationRequest<'a>
impl<'a> UnwindSafe for AuthorizationRequest<'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