pub struct OperationContext {
pub required_scope: String,
pub operation: String,
pub resource_id: String,
pub requested_path: String,
pub payload_digest: Vec<u8>,
}Expand description
The inputs that identify one specific action a presentation authorizes (SPEC §6.4.9). Which fields are populated is deployment-defined — empty fields encode as zero-length and the construction stays well-defined.
Fields§
§required_scope: StringScope the action requires (e.g. “files:write”).
operation: StringAction/operation type (e.g. “git.push”, “tool.invoke”).
resource_id: StringTarget resource identity.
requested_path: StringPath within the resource.
payload_digest: Vec<u8>Empty, or exactly 32 bytes: the SHA-256 of the canonical request payload, where one exists.
Trait Implementations§
Source§impl Clone for OperationContext
impl Clone for OperationContext
Source§impl Debug for OperationContext
impl Debug for OperationContext
Auto Trait Implementations§
impl Forget for OperationContext
impl Freeze for OperationContext
impl RefUnwindSafe for OperationContext
impl Send for OperationContext
impl Sync for OperationContext
impl Unpin for OperationContext
impl UnsafeUnpin for OperationContext
impl UnwindSafe for OperationContext
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