Skip to main content

validate_reservation

Function validate_reservation 

Source
pub fn validate_reservation(
    reservation: &TargetReservation,
    envelope: &ActionEnvelope,
) -> Result<(), ComputerUseError>
Available on crate feature computer-use only.
Expand description

Verifies a reservation belongs to this action and is active, current, and target-bound.

ยงErrors

Returns ComputerUseError::IdentityMismatch when any bound field disagrees with envelope, the reservation is not active, its expiry cannot be established, or it has expired.