#[non_exhaustive]pub struct ChecksummedData {
pub data: Bytes,
pub crc32c_checksum: Option<Int64Value>,
/* private fields */
}Expand description
Data with integrity verification field.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data: BytesRaw Data.
crc32c_checksum: Option<Int64Value>Integrity verification field. A CRC32C
checksum of the returned
ChecksummedData.data. An
integrity check of
ChecksummedData.data can be
performed by computing the CRC32C checksum of
ChecksummedData.data and
comparing your results to this field. Discard the response in case of
non-matching checksum values, and perform a limited number of retries. A
persistent mismatch may indicate an issue in your computation of the CRC32C
checksum. Note: This field is defined as int64 for reasons of compatibility
across different languages. However, it is a non-negative integer, which
will never exceed 2^32-1, and can be safely downconverted to uint32 in
languages that support this type.
Implementations§
Source§impl ChecksummedData
impl ChecksummedData
pub fn new() -> Self
Sourcepub fn set_crc32c_checksum<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
pub fn set_crc32c_checksum<T>(self, v: T) -> Selfwhere
T: Into<Int64Value>,
Sets the value of crc32c_checksum.
Sourcepub fn set_or_clear_crc32c_checksum<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
pub fn set_or_clear_crc32c_checksum<T>(self, v: Option<T>) -> Selfwhere
T: Into<Int64Value>,
Sets or clears the value of crc32c_checksum.
Trait Implementations§
Source§impl Clone for ChecksummedData
impl Clone for ChecksummedData
Source§fn clone(&self) -> ChecksummedData
fn clone(&self) -> ChecksummedData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more