pub struct IcSnapshotReply<'request> { /* private fields */ }Expand description
Read-only decoded reply associated with the caller’s exact request.
Capture has one entry; inventory has 0..=1,024 unique entries in raw-ID order. The wire contains no network, caller or target, so this association and digest do not authenticate response origin, freshness, permissions or execution. No Serde admission, completion receipt, reservation or settlement is provided.
Implementations§
Source§impl<'request> IcSnapshotReply<'request>
impl<'request> IcSnapshotReply<'request>
Sourcepub fn decode(
request: &'request IcManagementRequestRecord,
bytes: &[u8],
) -> Result<Self, IcSnapshotReplyError>
pub fn decode( request: &'request IcManagementRequestRecord, bytes: &[u8], ) -> Result<Self, IcSnapshotReplyError>
Decode the pinned capture or inventory result under finite local bounds.
Exactly one Candid argument with the required snapshot fields is admitted. Extra arguments, skipped fields, trailing bytes and duplicate IDs reject. The integration must independently qualify the transport/request association.
§Errors
Returns typed unsupported-method, raw-size, invalid-reply or duplicate-ID failures. No journal or caller-owned state changes on any outcome.
Sourcepub const fn request(&self) -> &'request IcManagementRequestRecord
pub const fn request(&self) -> &'request IcManagementRequestRecord
Read the original request; its owner supplies exact target/method/byte identity.
Sourcepub fn snapshots(&self) -> &[IcSnapshotInfo]
pub fn snapshots(&self) -> &[IcSnapshotInfo]
Read the capture singleton or canonical inventory without mutation access.
Sourcepub const fn payload_checksum(&self) -> &ArtifactChecksumRecord
pub const fn payload_checksum(&self) -> &ArtifactChecksumRecord
Read the SHA-256 checksum of the exact raw reply, including its wire ordering.
Sourcepub fn digest(&self) -> ArtifactChecksumRecord
pub fn digest(&self) -> ArtifactChecksumRecord
Hash the exact request digest and raw-reply checksum in a separate v1 domain.
Two fixed 64-byte lowercase SHA-256 strings follow the domain. A canonical inventory view does not erase raw wire differences or request identity. This is local evidence identity, not an authenticated IC receipt.