Crates.io | etag |
lib.rs | etag |
version | 4.0.0 |
source | src |
created_at | 2017-03-15 15:54:05.573629 |
updated_at | 2022-12-21 03:40:55.806273 |
description | Simple ETag calculation implementation |
homepage | |
repository | https://github.com/DoumanAsh/etag-rs |
max_upload_size | |
id | 8987 |
size | 20,895 |
Simple EntityTag implementation.
std
- Add EntityTag::from_file_meta
in order to generate ETag using file's metadata.use etag::EntityTag;
fn main() {
let my_tag = EntityTag::strong("lolka");
let text_etag = my_tag.to_string();
let parse_tag = text_etag.parse::<EntityTag>().unwrap();
assert!(my_tag.strong_eq(&parse_tag));
}