pub struct RestoreSafetyRequest<'a> { /* private fields */ }Expand description
Ephemeral original-source/safety/challenge request; no dispatch or paid-call permit.
Implementations§
Source§impl<'a> RestoreSafetyRequest<'a>
impl<'a> RestoreSafetyRequest<'a>
Sourcepub fn new(
plan: &'a OperationPlanRecord,
source: &OperationPlanRecord,
requirement: &'a RestoreSafetyRequirementRecord,
wire: &'a IcManagementRequestRecord,
input: RestoreSafetyRequestInput,
) -> Result<Self, RestoreSafetyRequestError>
pub fn new( plan: &'a OperationPlanRecord, source: &OperationPlanRecord, requirement: &'a RestoreSafetyRequirementRecord, wire: &'a IcManagementRequestRecord, input: RestoreSafetyRequestInput, ) -> Result<Self, RestoreSafetyRequestError>
Validate exact original plans, requirement and load/start mutation bytes.
The integration admits the retained requirement before effect-boundary use and retains original source artifacts and fence obligations. This constructor performs no IO and cannot prove that custody.
§Errors
Rejects changed source/plan/payload, other methods or excessive descriptive calls.
Sourcepub const fn binding(&self) -> &OperationBindingRecord
pub const fn binding(&self) -> &OperationBindingRecord
Read exact original operation, context, target and request identity.
Sourcepub const fn inventory(&self) -> &InventoryRecord
pub const fn inventory(&self) -> &InventoryRecord
Read original full inventory, including unselected metadata.
Sourcepub fn selected_targets(&self) -> &[String]
pub fn selected_targets(&self) -> &[String]
Read exact original selected IDs in canonical order, not dispatch order.
Sourcepub const fn requirement(&self) -> &RestoreSafetyRequirementRecord
pub const fn requirement(&self) -> &RestoreSafetyRequirementRecord
Read original immutable source and safety requirement.
Sourcepub const fn wire(&self) -> &IcManagementRequestRecord
pub const fn wire(&self) -> &IcManagementRequestRecord
Read exact original load/start wire request; codecs confer no load settlement.
Sourcepub const fn challenge(&self) -> &ArtifactChecksumRecord
pub const fn challenge(&self) -> &ArtifactChecksumRecord
Read challenge; matching values alone prove no freshness.
Sourcepub const fn max_remote_observations(&self) -> u32
pub const fn max_remote_observations(&self) -> u32
Read descriptive call ceiling without spending/replenishment.
Sourcepub fn digest(&self) -> ArtifactChecksumRecord
pub fn digest(&self) -> ArtifactChecksumRecord
Hash v1 NUL-terminated ASCII domain, 64 ASCII requirement-digest bytes, u64 BE sequence, 64 ASCII wire-digest bytes, 64 ASCII challenge bytes and u32 BE descriptive ceiling. Wire digest distinguishes load from start.