pub struct IcSnapshotMetadataReply<'request> { /* private fields */ }Expand description
Read-only pinned metadata and exact raw evidence under a declared request.
Optional source, unavailable globals and optional timer/hook fields retain their actual presence. Missing information is not a default or upload input. Floating globals retain their bits; globals and chunk rows retain wire order. This evidence grants no complete transfer, authentic origin or effect outcome.
Implementations§
Source§impl<'request> IcSnapshotMetadataReply<'request>
impl<'request> IcSnapshotMetadataReply<'request>
Sourcepub fn decode(
request: &'request IcSnapshotMetadataRequest,
bytes: &[u8],
) -> Result<Self, IcSnapshotMetadataError>
pub fn decode( request: &'request IcSnapshotMetadataRequest, bytes: &[u8], ) -> Result<Self, IcSnapshotMetadataError>
Decode one bounded metadata argument without skipped fields or extra bytes.
§Errors
Rejects excessive raw bytes, malformed/unsupported wire values, sequence bounds, certified data above 32 bytes, non-SHA-256/duplicate chunk hashes and v128 globals outside their unsigned 128-bit range.
Sourcepub const fn request(&self) -> &'request IcSnapshotMetadataRequest
pub const fn request(&self) -> &'request IcSnapshotMetadataRequest
Read the exact declared request; the reply wire authenticates no target.
Sourcepub const fn metadata(&self) -> &ReadCanisterSnapshotMetadataResult
pub const fn metadata(&self) -> &ReadCanisterSnapshotMetadataResult
Read admitted pinned DTO values without mutation access.
Sourcepub const fn payload_checksum(&self) -> &ArtifactChecksumRecord
pub const fn payload_checksum(&self) -> &ArtifactChecksumRecord
Read SHA-256 of exact raw bytes, including optional fields and wire ordering.
Sourcepub fn digest(&self) -> ArtifactChecksumRecord
pub fn digest(&self) -> ArtifactChecksumRecord
Bind original request and raw reply checksums in the metadata evidence domain.