pub struct InterruptResolutionIntent { /* private fields */ }Expand description
Pre-commit authenticated resolution of one exact interrupt request.
Implementations§
Source§impl InterruptResolutionIntent
impl InterruptResolutionIntent
Sourcepub fn new(
request: &InterruptRequest,
resolution_event_id: EventId,
resolution_payload: JournalPayload,
resolver: InterruptResolver,
) -> Result<Self, DurableWaitError>
pub fn new( request: &InterruptRequest, resolution_event_id: EventId, resolution_payload: JournalPayload, resolver: InterruptResolver, ) -> Result<Self, DurableWaitError>
Constructs and authorizes a resolution intent.
Authorization is checked again when the journal observation commits.
§Errors
Returns DurableWaitError::ResolverPrincipalMismatch or
DurableWaitError::ResolverScopesInsufficient for insufficient
authority, and fails closed on canonicalization errors.
Sourcepub fn restore(
request: InterruptRequestHead,
resolution_event_id: EventId,
resolution_payload: JournalPayload,
resolver: InterruptResolver,
intent_digest: Digest,
) -> Result<Self, DurableWaitError>
pub fn restore( request: InterruptRequestHead, resolution_event_id: EventId, resolution_payload: JournalPayload, resolver: InterruptResolver, intent_digest: Digest, ) -> Result<Self, DurableWaitError>
Restores and verifies a persisted resolution intent.
§Errors
Returns DurableWaitError for invalid authorization or integrity.
Sourcepub const fn request(&self) -> &InterruptRequestHead
pub const fn request(&self) -> &InterruptRequestHead
Returns the exact interrupt request anchor.
Sourcepub const fn resolution_event_id(&self) -> EventId
pub const fn resolution_event_id(&self) -> EventId
Returns the event that must commit this resolution.
Sourcepub const fn resolution_payload(&self) -> &JournalPayload
pub const fn resolution_payload(&self) -> &JournalPayload
Returns the schema-pinned resolution payload.
Sourcepub const fn resolver(&self) -> &InterruptResolver
pub const fn resolver(&self) -> &InterruptResolver
Returns authenticated resolver provenance.
Sourcepub const fn intent_digest(&self) -> Digest
pub const fn intent_digest(&self) -> Digest
Returns the semantic idempotency checksum.
Trait Implementations§
Source§impl Clone for InterruptResolutionIntent
impl Clone for InterruptResolutionIntent
Source§impl Debug for InterruptResolutionIntent
impl Debug for InterruptResolutionIntent
Source§impl<'de> Deserialize<'de> for InterruptResolutionIntent
impl<'de> Deserialize<'de> for InterruptResolutionIntent
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for InterruptResolutionIntent
Source§impl JsonSchema for InterruptResolutionIntent
impl JsonSchema for InterruptResolutionIntent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for InterruptResolutionIntent
Auto Trait Implementations§
impl Forget for InterruptResolutionIntent
impl Freeze for InterruptResolutionIntent
impl Move for InterruptResolutionIntent
impl RefUnwindSafe for InterruptResolutionIntent
impl Send for InterruptResolutionIntent
impl Sync for InterruptResolutionIntent
impl Unpin for InterruptResolutionIntent
impl UnsafeUnpin for InterruptResolutionIntent
impl UnwindSafe for InterruptResolutionIntent
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