pub type BodySha512<T> = BodyHash<T, Sha512>;Available on crate feature
sha2 only.Expand description
Wraps an extractor and calculates a SHA-512 body checksum hash alongside.
§Example
use actix_hash::BodySha512;
async fn handler(body: BodySha512<String>) -> String {
assert_eq!(body.hash().len(), 64);
body.into_parts().inner
}Aliased Type§
pub struct BodySha512<T> { /* private fields */ }