#[non_exhaustive]pub struct IntegrityChecks { /* private fields */ }Expand description
Object-integrity information for a completed download.
Carries the object’s reported checksum values (as returned by S3) and the
outcome of checksum validation over the delivered bytes. Validation is a
completion-time fact, distinct from the discovery-time ObjectMetadata.
Whole-object downloads with checksum validation enabled report the stored
values returned by checksum-mode HEAD. Caller ranges do not report object
checksum values. Validation-off downloads can report stored values only
when discovery receives the whole object in one GET.
Values are None for a ChecksumType::Composite checksum, a checksum of
part checksums that a checksum over the delivered bytes does not reproduce;
the type is still reported.
A checksum mismatch is not represented here; it surfaces as an Err from the
download’s join(). On a successful DownloadOutput, ChecksumValidation
distinguishes “validated” from “validation did not happen”.
Implementations§
Source§impl IntegrityChecks
impl IntegrityChecks
Sourcepub fn checksum_validation(&self) -> &ChecksumValidation
pub fn checksum_validation(&self) -> &ChecksumValidation
The outcome of checksum validation over the delivered object bytes.
Sourcepub fn checksum_crc32(&self) -> Option<&str>
pub fn checksum_crc32(&self) -> Option<&str>
The base64-encoded CRC-32 checksum reported by S3, if present.
Sourcepub fn checksum_crc32c(&self) -> Option<&str>
pub fn checksum_crc32c(&self) -> Option<&str>
The base64-encoded CRC-32C checksum reported by S3, if present.
Sourcepub fn checksum_crc64_nvme(&self) -> Option<&str>
pub fn checksum_crc64_nvme(&self) -> Option<&str>
The base64-encoded CRC-64/NVME checksum reported by S3, if present.
Sourcepub fn checksum_sha1(&self) -> Option<&str>
pub fn checksum_sha1(&self) -> Option<&str>
The base64-encoded SHA-1 checksum reported by S3, if present.
Sourcepub fn checksum_sha256(&self) -> Option<&str>
pub fn checksum_sha256(&self) -> Option<&str>
The base64-encoded SHA-256 checksum reported by S3, if present.
Sourcepub fn checksum_sha512(&self) -> Option<&str>
pub fn checksum_sha512(&self) -> Option<&str>
The base64-encoded SHA-512 checksum reported by S3, if present.
Sourcepub fn checksum_md5(&self) -> Option<&str>
pub fn checksum_md5(&self) -> Option<&str>
The base64-encoded MD5 checksum reported by S3, if present.
Sourcepub fn checksum_xxhash64(&self) -> Option<&str>
pub fn checksum_xxhash64(&self) -> Option<&str>
The base64-encoded XXHASH64 checksum reported by S3, if present.
Sourcepub fn checksum_xxhash3(&self) -> Option<&str>
pub fn checksum_xxhash3(&self) -> Option<&str>
The base64-encoded XXHASH3 checksum reported by S3, if present.
Sourcepub fn checksum_xxhash128(&self) -> Option<&str>
pub fn checksum_xxhash128(&self) -> Option<&str>
The base64-encoded XXHASH128 checksum reported by S3, if present.
Sourcepub fn checksum_type(&self) -> Option<&ChecksumType>
pub fn checksum_type(&self) -> Option<&ChecksumType>
The object’s checksum type (full-object vs composite), if reported.
Trait Implementations§
Source§impl Clone for IntegrityChecks
impl Clone for IntegrityChecks
Auto Trait Implementations§
impl Forget for IntegrityChecks
impl Freeze for IntegrityChecks
impl Move for IntegrityChecks
impl RefUnwindSafe for IntegrityChecks
impl Send for IntegrityChecks
impl Sync for IntegrityChecks
impl Unpin for IntegrityChecks
impl UnsafeUnpin for IntegrityChecks
impl UnwindSafe for IntegrityChecks
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more